Skip to content

Package net.minecraft.client.resources.model

Part 1/1


AtlasSet

  • Full name: net.minecraft.client.resources.model.AtlasSet
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/AtlasSet.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.client.resources.model.AtlasSet#AtlasSet(Map<ResourceLocation, ResourceLocation>,TextureManager)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ AtlasSet ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: atlases. เรียกต่อ: entrySet(), stream(), collect(), toMap(), getKey(), register(), AtlasEntry(), getValue(). สร้างออบเจ็กต์: TextureAtlas, AtlasSet.AtlasEntry. คืนค่า: new AtlasSet.AtlasEntry(textureAtlas, entry.getValue()).

Parameters

  • Map<ResourceLocation, ResourceLocation> map
  • TextureManager textureManager

ตัวอย่างใช้งาน

Map<ResourceLocation, ResourceLocation> map = ...;
TextureManager textureManager = ...;
AtlasSet instance = new AtlasSet(map, textureManager);

net.minecraft.client.resources.model.AtlasSet#close()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:34
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

เรียกต่อ: values(), forEach(), clear().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AtlasSet instance = ...;
instance.close();

net.minecraft.client.resources.model.AtlasSet#getAtlas(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:30
  • Modifiers: public
  • Return: TextureAtlas

คืออะไร

อ่านค่า Atlas

ทำงานยังไง

เรียกต่อ: get(), atlas(). คืนค่า: this.atlases.get(resourceLocation).atlas().

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

AtlasSet instance = ...;
ResourceLocation resourceLocation = ...;
TextureAtlas result = instance.getAtlas(resourceLocation);

net.minecraft.client.resources.model.AtlasSet#scheduleLoad(ResourceManager,int,Executor)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:40
  • Modifiers: public
  • Return: Map<ResourceLocation, CompletableFuture<AtlasSet.StitchResult>>

คืออะไร

ดำเนินการ scheduleLoad ตาม implementation ของ AtlasSet

ทำงานยังไง

เรียกต่อ: entrySet(), stream(), collect(), toMap(), getValue(), create(), loadAndStitch(), thenApply(). สร้างออบเจ็กต์: AtlasSet.StitchResult.

Parameters

  • ResourceManager resourceManager
  • int i
  • Executor executor

ตัวอย่างใช้งาน

AtlasSet instance = ...;
ResourceManager resourceManager = ...;
Executor executor = ...;
Map<ResourceLocation, CompletableFuture<AtlasSet.StitchResult>> result = instance.scheduleLoad(resourceManager, 0, executor);

AtlasSet$StitchResult

  • Full name: net.minecraft.client.resources.model.AtlasSet$StitchResult
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/AtlasSet.java
  • Type: class
  • Modifiers: public static

net.minecraft.client.resources.model.AtlasSet$StitchResult#getSprite(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:76
  • Modifiers: public
  • Return: TextureAtlasSprite

คืออะไร

อ่านค่า Sprite

ทำงานยังไง

เรียกต่อ: regions(), get(). คืนค่า: this.preparations.regions().get(resourceLocation).

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

AtlasSet.StitchResult instance = ...;
ResourceLocation resourceLocation = ...;
TextureAtlasSprite result = instance.getSprite(resourceLocation);

net.minecraft.client.resources.model.AtlasSet$StitchResult#missing()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:81
  • Modifiers: public
  • Return: TextureAtlasSprite

คืออะไร

ดำเนินการ missing ตาม implementation ของ AtlasSet$StitchResult

ทำงานยังไง

คืนค่า: this.preparations.missing().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AtlasSet.StitchResult instance = ...;
TextureAtlasSprite result = instance.missing();

net.minecraft.client.resources.model.AtlasSet$StitchResult#readyForUpload()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:85
  • Modifiers: public
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ readyForUpload ตาม implementation ของ AtlasSet$StitchResult

ทำงานยังไง

คืนค่า: this.preparations.readyForUpload().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AtlasSet.StitchResult instance = ...;
CompletableFuture<Void> result = instance.readyForUpload();

net.minecraft.client.resources.model.AtlasSet$StitchResult#StitchResult(TextureAtlas,SpriteLoader.Preparations)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:71
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ AtlasSet.StitchResult ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: atlas, preparations.

Parameters

  • TextureAtlas textureAtlas
  • SpriteLoader.Preparations preparations

ตัวอย่างใช้งาน

TextureAtlas textureAtlas = ...;
SpriteLoader.Preparations preparations = ...;
AtlasSet.StitchResult instance = new AtlasSet.StitchResult(textureAtlas, preparations);

net.minecraft.client.resources.model.AtlasSet$StitchResult#upload()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/AtlasSet.java:89
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ upload ตาม implementation ของ AtlasSet$StitchResult

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AtlasSet.StitchResult instance = ...;
instance.upload();

BakedModel

  • Full name: net.minecraft.client.resources.model.BakedModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/BakedModel.java
  • Type: interface
  • Modifiers: public
  • Implements: FabricBakedModel

net.minecraft.client.resources.model.BakedModel#getParticleIcon()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BakedModel.java:28
  • Modifiers: ``
  • Return: TextureAtlasSprite

คืออะไร

อ่านค่า Particle Icon

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BakedModel instance = ...;
TextureAtlasSprite result = instance.getParticleIcon();

net.minecraft.client.resources.model.BakedModel#getQuads(BlockState,Direction,RandomSource)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BakedModel.java:20
  • Modifiers: ``
  • Return: List<BakedQuad>

คืออะไร

อ่านค่า Quads

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • BlockState blockState
  • Direction direction
  • RandomSource randomSource

ตัวอย่างใช้งาน

BakedModel instance = ...;
BlockState blockState = ...;
Direction direction = ...;
RandomSource randomSource = ...;
List<BakedQuad> result = instance.getQuads(blockState, direction, randomSource);

net.minecraft.client.resources.model.BakedModel#getTransforms()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BakedModel.java:30
  • Modifiers: ``
  • Return: ItemTransforms

คืออะไร

อ่านค่า Transforms

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BakedModel instance = ...;
ItemTransforms result = instance.getTransforms();

net.minecraft.client.resources.model.BakedModel#isGui3d()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BakedModel.java:24
  • Modifiers: ``
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Gui3d

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BakedModel instance = ...;
boolean result = instance.isGui3d();

net.minecraft.client.resources.model.BakedModel#useAmbientOcclusion()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BakedModel.java:22
  • Modifiers: ``
  • Return: boolean

คืออะไร

ใช้งาน Ambient Occlusion

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BakedModel instance = ...;
boolean result = instance.useAmbientOcclusion();

net.minecraft.client.resources.model.BakedModel#usesBlockLight()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BakedModel.java:26
  • Modifiers: ``
  • Return: boolean

คืออะไร

ดำเนินการ usesBlockLight ตาม implementation ของ BakedModel

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BakedModel instance = ...;
boolean result = instance.usesBlockLight();

BlockModelRotation

  • Full name: net.minecraft.client.resources.model.BlockModelRotation
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/BlockModelRotation.java
  • Type: enum
  • Modifiers: public
  • Implements: ModelState

net.minecraft.client.resources.model.BlockModelRotation#actualRotation()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BlockModelRotation.java:69
  • Modifiers: public
  • Return: OctahedralGroup

คืออะไร

ดำเนินการ actualRotation ตาม implementation ของ BlockModelRotation

ทำงานยังไง

คืนค่า: this.actualRotation.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BlockModelRotation instance = ...;
OctahedralGroup result = instance.actualRotation();

net.minecraft.client.resources.model.BlockModelRotation#by(int,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BlockModelRotation.java:65
  • Modifiers: public static
  • Return: BlockModelRotation

คืออะไร

ดำเนินการ by ตาม implementation ของ BlockModelRotation

ทำงานยังไง

เรียกต่อ: get(), getIndex(), positiveModulo(). คืนค่า: BY_INDEX.get(getIndex(Mth.positiveModulo(i, 360), Mth.positiveModulo(j, 360))).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

BlockModelRotation result = BlockModelRotation.by(0, 0);

net.minecraft.client.resources.model.BlockModelRotation#getRotation()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BlockModelRotation.java:60
  • Modifiers: public
  • Return: Transformation

คืออะไร

อ่านค่า Rotation

ทำงานยังไง

คืนค่า: this.transformation.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BlockModelRotation instance = ...;
Transformation result = instance.getRotation();

BlockStateModelLoader

  • Full name: net.minecraft.client.resources.model.BlockStateModelLoader
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/BlockStateModelLoader.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.BlockStateModelLoader#loadBlockStates(UnbakedModel,ResourceManager,Executor)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BlockStateModelLoader.java:67
  • Modifiers: public static
  • Return: CompletableFuture<BlockStateModelLoader.LoadedModels>

คืออะไร

โหลด Block States

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: definitionLocationToBlockMapper(), supplyAsync(), listMatchingResourceStacks(), thenCompose(), size(), entrySet(), add(), fileToId(). สร้างออบเจ็กต์: ArrayList<>, BlockStateModelLoader.LoadedBlockModelDefinition, HashMap<>, BlockStateModelLoader.LoadedModels. มีจุด return อย่างน้อย 5 จุด.

Parameters

  • UnbakedModel unbakedModel
  • ResourceManager resourceManager
  • Executor executor

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
ResourceManager resourceManager = ...;
Executor executor = ...;
CompletableFuture<BlockStateModelLoader.LoadedModels> result = BlockStateModelLoader.loadBlockStates(unbakedModel, resourceManager, executor);

BlockStateModelLoader$LoadedModels

  • Full name: net.minecraft.client.resources.model.BlockStateModelLoader$LoadedModels
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/BlockStateModelLoader.java
  • Type: record
  • Modifiers: public

net.minecraft.client.resources.model.BlockStateModelLoader$LoadedModels#forResolving()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BlockStateModelLoader.java:149
  • Modifiers: public
  • Return: Stream<ResolvableModel>

คืออะไร

ดำเนินการ forResolving ตาม implementation ของ BlockStateModelLoader$LoadedModels

ทำงานยังไง

เรียกต่อ: values(), stream(), map(). คืนค่า: this.models.values().stream().map(BlockStateModelLoader.LoadedModel::model).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BlockStateModelLoader.LoadedModels instance = ...;
Stream<ResolvableModel> result = instance.forResolving();

net.minecraft.client.resources.model.BlockStateModelLoader$LoadedModels#plainModels()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/BlockStateModelLoader.java:153
  • Modifiers: public
  • Return: Map<ModelResourceLocation, UnbakedBlockStateModel>

คืออะไร

ดำเนินการ plainModels ตาม implementation ของ BlockStateModelLoader$LoadedModels

ทำงานยังไง

เรียกต่อ: transformValues(). คืนค่า: Maps.transformValues(this.models, BlockStateModelLoader.LoadedModel::model).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BlockStateModelLoader.LoadedModels instance = ...;
Map<ModelResourceLocation, UnbakedBlockStateModel> result = instance.plainModels();

ClientItemInfoLoader

  • Full name: net.minecraft.client.resources.model.ClientItemInfoLoader
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ClientItemInfoLoader.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.ClientItemInfoLoader#scheduleLoad(ResourceManager,Executor)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ClientItemInfoLoader.java:28
  • Modifiers: public static
  • Return: CompletableFuture<ClientItemInfoLoader.LoadedClientInfos>

คืออะไร

ดำเนินการ scheduleLoad ตาม implementation ของ ClientItemInfoLoader

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: supplyAsync(), listMatchingResources(), thenCompose(), size(), forEach(), add(), fileToId(), openAsReader(). สร้างออบเจ็กต์: ArrayList<>, ClientItemInfoLoader.PendingLoad, HashMap<>, ClientItemInfoLoader.LoadedClientInfos. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • ResourceManager resourceManager
  • Executor executor

ตัวอย่างใช้งาน

ResourceManager resourceManager = ...;
Executor executor = ...;
CompletableFuture<ClientItemInfoLoader.LoadedClientInfos> result = ClientItemInfoLoader.scheduleLoad(resourceManager, executor);

DelegateBakedModel

  • Full name: net.minecraft.client.resources.model.DelegateBakedModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/DelegateBakedModel.java
  • Type: class
  • Modifiers: public abstract
  • Implements: BakedModel,UnwrappableBakedModel

net.minecraft.client.resources.model.DelegateBakedModel#DelegateBakedModel(BakedModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ DelegateBakedModel ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: parent.

Parameters

  • BakedModel bakedModel

ตัวอย่างใช้งาน

BakedModel bakedModel = ...;
DelegateBakedModel instance = new DelegateBakedModel(bakedModel);

net.minecraft.client.resources.model.DelegateBakedModel#getParticleIcon()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:46
  • Modifiers: public
  • Return: TextureAtlasSprite

คืออะไร

อ่านค่า Particle Icon

ทำงานยังไง

คืนค่า: this.parent.getParticleIcon().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DelegateBakedModel instance = ...;
TextureAtlasSprite result = instance.getParticleIcon();

net.minecraft.client.resources.model.DelegateBakedModel#getQuads(BlockState,Direction,RandomSource)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:26
  • Modifiers: public
  • Return: List<BakedQuad>

คืออะไร

อ่านค่า Quads

ทำงานยังไง

คืนค่า: this.parent.getQuads(blockState, direction, randomSource).

Parameters

  • BlockState blockState
  • Direction direction
  • RandomSource randomSource

ตัวอย่างใช้งาน

DelegateBakedModel instance = ...;
BlockState blockState = ...;
Direction direction = ...;
RandomSource randomSource = ...;
List<BakedQuad> result = instance.getQuads(blockState, direction, randomSource);

net.minecraft.client.resources.model.DelegateBakedModel#getTransforms()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:51
  • Modifiers: public
  • Return: ItemTransforms

คืออะไร

อ่านค่า Transforms

ทำงานยังไง

คืนค่า: this.parent.getTransforms().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DelegateBakedModel instance = ...;
ItemTransforms result = instance.getTransforms();

net.minecraft.client.resources.model.DelegateBakedModel#isGui3d()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:36
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Gui3d

ทำงานยังไง

คืนค่า: this.parent.isGui3d().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DelegateBakedModel instance = ...;
boolean result = instance.isGui3d();

net.minecraft.client.resources.model.DelegateBakedModel#useAmbientOcclusion()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:31
  • Modifiers: public
  • Return: boolean

คืออะไร

ใช้งาน Ambient Occlusion

ทำงานยังไง

คืนค่า: this.parent.useAmbientOcclusion().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DelegateBakedModel instance = ...;
boolean result = instance.useAmbientOcclusion();

net.minecraft.client.resources.model.DelegateBakedModel#usesBlockLight()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/DelegateBakedModel.java:41
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ usesBlockLight ตาม implementation ของ DelegateBakedModel

ทำงานยังไง

คืนค่า: this.parent.usesBlockLight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DelegateBakedModel instance = ...;
boolean result = instance.usesBlockLight();

EquipmentAssetManager

  • Full name: net.minecraft.client.resources.model.EquipmentAssetManager
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/EquipmentAssetManager.java
  • Type: class
  • Modifiers: public
  • Extends: SimpleJsonResourceReloadListener<EquipmentClientInfo>

net.minecraft.client.resources.model.EquipmentAssetManager#apply(Map<ResourceLocation, EquipmentClientInfo>,ResourceManager,ProfilerFiller)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentAssetManager.java:27
  • Modifiers: protected
  • Return: void

คืออะไร

นำไปใช้ apply

ทำงานยังไง

แก้ state: equipmentAssets. เรียกต่อ: entrySet(), stream(), collect(), toUnmodifiableMap(), create(), getKey().

Parameters

  • Map<ResourceLocation, EquipmentClientInfo> map
  • ResourceManager resourceManager
  • ProfilerFiller profilerFiller

ตัวอย่างใช้งาน

Map<ResourceLocation, EquipmentClientInfo> map = ...;
ResourceManager resourceManager = ...;
ProfilerFiller profilerFiller = ...;
@Override
protected void apply(Map<ResourceLocation, EquipmentClientInfo> map, ResourceManager resourceManager, ProfilerFiller profilerFiller) {
    super.apply(map, resourceManager, profilerFiller);
}

net.minecraft.client.resources.model.EquipmentAssetManager#EquipmentAssetManager()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentAssetManager.java:23
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EquipmentAssetManager ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

EquipmentAssetManager instance = new EquipmentAssetManager();

net.minecraft.client.resources.model.EquipmentAssetManager#get(ResourceKey<EquipmentAsset>)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentAssetManager.java:33
  • Modifiers: public
  • Return: EquipmentClientInfo

คืออะไร

อ่านค่า get

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: this.equipmentAssets.getOrDefault(resourceKey, MISSING).

Parameters

  • ResourceKey<EquipmentAsset> resourceKey

ตัวอย่างใช้งาน

EquipmentAssetManager instance = ...;
ResourceKey<EquipmentAsset> resourceKey = ...;
EquipmentClientInfo result = instance.get(resourceKey);

EquipmentClientInfo

  • Full name: net.minecraft.client.resources.model.EquipmentClientInfo
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/EquipmentClientInfo.java
  • Type: record
  • Modifiers: public

net.minecraft.client.resources.model.EquipmentClientInfo#builder()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:29
  • Modifiers: public static
  • Return: EquipmentClientInfo.Builder

คืออะไร

ดำเนินการ builder ตาม implementation ของ EquipmentClientInfo

ทำงานยังไง

เรียกต่อ: Builder(). สร้างออบเจ็กต์: EquipmentClientInfo.Builder. คืนค่า: new EquipmentClientInfo.Builder().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

EquipmentClientInfo.Builder result = EquipmentClientInfo.builder();

net.minecraft.client.resources.model.EquipmentClientInfo#getLayers(EquipmentClientInfo.LayerType)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:33
  • Modifiers: public
  • Return: List<EquipmentClientInfo.Layer>

คืออะไร

อ่านค่า Layers

ทำงานยังไง

เรียกต่อ: getOrDefault(), of(). คืนค่า: this.layers.getOrDefault(layerType, List.of()).

Parameters

  • EquipmentClientInfo.LayerType layerType

ตัวอย่างใช้งาน

EquipmentClientInfo instance = ...;
EquipmentClientInfo.LayerType layerType = ...;
List<EquipmentClientInfo.Layer> result = instance.getLayers(layerType);

EquipmentClientInfo$Builder

  • Full name: net.minecraft.client.resources.model.EquipmentClientInfo$Builder
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/EquipmentClientInfo.java
  • Type: class
  • Modifiers: public static

net.minecraft.client.resources.model.EquipmentClientInfo$Builder#addHumanoidLayers(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:44
  • Modifiers: public
  • Return: EquipmentClientInfo.Builder

คืออะไร

เพิ่ม Humanoid Layers

ทำงานยังไง

คืนค่า: this.addHumanoidLayers(resourceLocation, false).

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

EquipmentClientInfo.Builder instance = ...;
ResourceLocation resourceLocation = ...;
EquipmentClientInfo.Builder result = instance.addHumanoidLayers(resourceLocation);

net.minecraft.client.resources.model.EquipmentClientInfo$Builder#addHumanoidLayers(ResourceLocation,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:48
  • Modifiers: public
  • Return: EquipmentClientInfo.Builder

คืออะไร

เพิ่ม Humanoid Layers

ทำงานยังไง

เรียกต่อ: addLayers(), leatherDyeable(), addMainHumanoidLayer(). คืนค่า: this.

Parameters

  • ResourceLocation resourceLocation
  • boolean bl

ตัวอย่างใช้งาน

EquipmentClientInfo.Builder instance = ...;
ResourceLocation resourceLocation = ...;
EquipmentClientInfo.Builder result = instance.addHumanoidLayers(resourceLocation, true);

net.minecraft.client.resources.model.EquipmentClientInfo$Builder#addLayers(EquipmentClientInfo.LayerType,EquipmentClientInfo.Layer[])

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:58
  • Modifiers: public
  • Return: EquipmentClientInfo.Builder

คืออะไร

เพิ่ม Layers

ทำงานยังไง

เรียกต่อ: addAll(), computeIfAbsent(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: this.

Parameters

  • EquipmentClientInfo.LayerType layerType
  • EquipmentClientInfo.Layer[] layers

ตัวอย่างใช้งาน

EquipmentClientInfo.Builder instance = ...;
EquipmentClientInfo.LayerType layerType = ...;
EquipmentClientInfo.Layer[] layers = ...;
EquipmentClientInfo.Builder result = instance.addLayers(layerType, layers);

net.minecraft.client.resources.model.EquipmentClientInfo$Builder#addMainHumanoidLayer(ResourceLocation,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:54
  • Modifiers: public
  • Return: EquipmentClientInfo.Builder

คืออะไร

เพิ่ม Main Humanoid Layer

ทำงานยังไง

เรียกต่อ: addLayers(), leatherDyeable(). คืนค่า: this.addLayers(EquipmentClientInfo.LayerType.HUMANOID, EquipmentClientInfo.Layer.leatherDyeable(resourceLocation, bl)).

Parameters

  • ResourceLocation resourceLocation
  • boolean bl

ตัวอย่างใช้งาน

EquipmentClientInfo.Builder instance = ...;
ResourceLocation resourceLocation = ...;
EquipmentClientInfo.Builder result = instance.addMainHumanoidLayer(resourceLocation, true);

net.minecraft.client.resources.model.EquipmentClientInfo$Builder#build()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:63
  • Modifiers: public
  • Return: EquipmentClientInfo

คืออะไร

สร้าง build

ทำงานยังไง

เรียกต่อ: entrySet(), stream(), collect(), toImmutableMap(), copyOf(), getValue(). สร้างออบเจ็กต์: EquipmentClientInfo.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

EquipmentClientInfo.Builder instance = ...;
EquipmentClientInfo result = instance.build();

EquipmentClientInfo$Layer

  • Full name: net.minecraft.client.resources.model.EquipmentClientInfo$Layer
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/EquipmentClientInfo.java
  • Type: record
  • Modifiers: public

net.minecraft.client.resources.model.EquipmentClientInfo$Layer#getTextureLocation(EquipmentClientInfo.LayerType)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:101
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Texture Location

ทำงานยังไง

เรียกต่อ: withPath(), getSerializedName(). คืนค่า: this.textureId.withPath(string -> "textures/entity/equipment/" + layerType.getSerializedName() + "/" + string + ".png").

Parameters

  • EquipmentClientInfo.LayerType layerType

ตัวอย่างใช้งาน

EquipmentClientInfo.Layer instance = ...;
EquipmentClientInfo.LayerType layerType = ...;
ResourceLocation result = instance.getTextureLocation(layerType);

net.minecraft.client.resources.model.EquipmentClientInfo$Layer#Layer(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:89
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EquipmentClientInfo.Layer ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: empty().

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

ResourceLocation resourceLocation = ...;
EquipmentClientInfo.Layer instance = new EquipmentClientInfo.Layer(resourceLocation);

net.minecraft.client.resources.model.EquipmentClientInfo$Layer#leatherDyeable(ResourceLocation,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:93
  • Modifiers: public static
  • Return: EquipmentClientInfo.Layer

คืออะไร

ดำเนินการ leatherDyeable ตาม implementation ของ EquipmentClientInfo$Layer

ทำงานยังไง

เรียกต่อ: Layer(), of(), Dyeable(), empty(). สร้างออบเจ็กต์: EquipmentClientInfo.Layer, EquipmentClientInfo.Dyeable. คืนค่า: new EquipmentClientInfo.Layer(resourceLocation, bl ? Optional.of(new EquipmentClientInfo.Dyeable(Optional.of(-6265536))) : Optional.empty(), false).

Parameters

  • ResourceLocation resourceLocation
  • boolean bl

ตัวอย่างใช้งาน

ResourceLocation resourceLocation = ...;
EquipmentClientInfo.Layer result = EquipmentClientInfo.Layer.leatherDyeable(resourceLocation, true);

net.minecraft.client.resources.model.EquipmentClientInfo$Layer#onlyIfDyed(ResourceLocation,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:97
  • Modifiers: public static
  • Return: EquipmentClientInfo.Layer

คืออะไร

ดำเนินการ onlyIfDyed ตาม implementation ของ EquipmentClientInfo$Layer

ทำงานยังไง

เรียกต่อ: Layer(), of(), Dyeable(), empty(). สร้างออบเจ็กต์: EquipmentClientInfo.Layer, EquipmentClientInfo.Dyeable. คืนค่า: new EquipmentClientInfo.Layer(resourceLocation, bl ? Optional.of(new EquipmentClientInfo.Dyeable(Optional.empty())) : Optional.empty(), false).

Parameters

  • ResourceLocation resourceLocation
  • boolean bl

ตัวอย่างใช้งาน

ResourceLocation resourceLocation = ...;
EquipmentClientInfo.Layer result = EquipmentClientInfo.Layer.onlyIfDyed(resourceLocation, true);

EquipmentClientInfo$LayerType

  • Full name: net.minecraft.client.resources.model.EquipmentClientInfo$LayerType
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/EquipmentClientInfo.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.client.resources.model.EquipmentClientInfo$LayerType#getSerializedName()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/EquipmentClientInfo.java:122
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

EquipmentClientInfo.LayerType instance = ...;
String result = instance.getSerializedName();

Material

  • Full name: net.minecraft.client.resources.model.Material
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/Material.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.Material#atlasLocation()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:30
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

ดำเนินการ atlasLocation ตาม implementation ของ Material

ทำงานยังไง

คืนค่า: this.atlasLocation.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Material instance = ...;
ResourceLocation result = instance.atlasLocation();

net.minecraft.client.resources.model.Material#buffer(MultiBufferSource,Function<ResourceLocation, RenderType>)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:50
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

ดำเนินการ buffer ตาม implementation ของ Material

ทำงานยังไง

เรียกต่อ: sprite(), wrap(), getBuffer(), renderType(). คืนค่า: this.sprite().wrap(multiBufferSource.getBuffer(this.renderType(function))).

Parameters

  • MultiBufferSource multiBufferSource
  • Function<ResourceLocation, RenderType> function

ตัวอย่างใช้งาน

Material instance = ...;
MultiBufferSource multiBufferSource = ...;
Function<ResourceLocation, RenderType> function = ...;
VertexConsumer result = instance.buffer(multiBufferSource, function);

net.minecraft.client.resources.model.Material#buffer(MultiBufferSource,Function<ResourceLocation, RenderType>,boolean,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:54
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

ดำเนินการ buffer ตาม implementation ของ Material

ทำงานยังไง

เรียกต่อ: sprite(), wrap(), getFoilBuffer(), renderType(). คืนค่า: this.sprite().wrap(ItemRenderer.getFoilBuffer(multiBufferSource, this.renderType(function), bl, bl2)).

Parameters

  • MultiBufferSource multiBufferSource
  • Function<ResourceLocation, RenderType> function
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

Material instance = ...;
MultiBufferSource multiBufferSource = ...;
Function<ResourceLocation, RenderType> function = ...;
VertexConsumer result = instance.buffer(multiBufferSource, function, true, true);

net.minecraft.client.resources.model.Material#equals(Object)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:58
  • Modifiers: public
  • Return: boolean

คืออะไร

เปรียบเทียบความเท่ากัน equals

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getClass(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • Object object

ตัวอย่างใช้งาน

Material instance = ...;
Object object = ...;
boolean result = instance.equals(object);

net.minecraft.client.resources.model.Material#hashCode()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:70
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ hashCode ตาม implementation ของ Material

ทำงานยังไง

เรียกต่อ: hash(). คืนค่า: Objects.hash(this.atlasLocation, this.texture).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Material instance = ...;
int result = instance.hashCode();

net.minecraft.client.resources.model.Material#Material(ResourceLocation,ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Material ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: atlasLocation, texture.

Parameters

  • ResourceLocation resourceLocation
  • ResourceLocation resourceLocation2

ตัวอย่างใช้งาน

ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
Material instance = new Material(resourceLocation, resourceLocation2);

net.minecraft.client.resources.model.Material#renderType(Function<ResourceLocation, RenderType>)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:42
  • Modifiers: public
  • Return: RenderType

คืออะไร

เรนเดอร์ Type

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: renderType. เรียกต่อ: apply(). คืนค่า: this.renderType.

Parameters

  • Function<ResourceLocation, RenderType> function

ตัวอย่างใช้งาน

Material instance = ...;
Function<ResourceLocation, RenderType> function = ...;
RenderType result = instance.renderType(function);

net.minecraft.client.resources.model.Material#sprite()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:38
  • Modifiers: public
  • Return: TextureAtlasSprite

คืออะไร

ดำเนินการ sprite ตาม implementation ของ Material

ทำงานยังไง

เรียกต่อ: getInstance(), getTextureAtlas(), atlasLocation(), apply(), texture(). คืนค่า: Minecraft.getInstance().getTextureAtlas(this.atlasLocation()).apply(this.texture()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Material instance = ...;
TextureAtlasSprite result = instance.sprite();

net.minecraft.client.resources.model.Material#texture()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:34
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

ดำเนินการ texture ตาม implementation ของ Material

ทำงานยังไง

คืนค่า: this.texture.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Material instance = ...;
ResourceLocation result = instance.texture();

net.minecraft.client.resources.model.Material#toString()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/Material.java:75
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ Material

ทำงานยังไง

คืนค่า: "Material{atlasLocation=" + this.atlasLocation + ", texture=" + this.texture + "}".

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Material instance = ...;
String result = instance.toString();

MissingBlockModel

  • Full name: net.minecraft.client.resources.model.MissingBlockModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/MissingBlockModel.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.MissingBlockModel#missingModel()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/MissingBlockModel.java:27
  • Modifiers: public static
  • Return: UnbakedModel

คืออะไร

ดำเนินการ missingModel ตาม implementation ของ MissingBlockModel

ทำงานยังไง

มีการวนลูป. เรียกต่อ: values(), put(), of(), Builder(), addReference(), addTexture(), getLocation(), build(). สร้างออบเจ็กต์: BlockFaceUV, EnumMap<>, BlockElementFace, BlockElement.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UnbakedModel result = MissingBlockModel.missingModel();

ModelBaker

  • Full name: net.minecraft.client.resources.model.ModelBaker
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelBaker.java
  • Type: interface
  • Modifiers: public

net.minecraft.client.resources.model.ModelBaker#bake(ResourceLocation,ModelState)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBaker.java:10
  • Modifiers: ``
  • Return: BakedModel

คืออะไร

ดำเนินการ bake ตาม implementation ของ ModelBaker

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ResourceLocation resourceLocation
  • ModelState modelState

ตัวอย่างใช้งาน

ModelBaker instance = ...;
ResourceLocation resourceLocation = ...;
ModelState modelState = ...;
BakedModel result = instance.bake(resourceLocation, modelState);

net.minecraft.client.resources.model.ModelBaker#rootName()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBaker.java:14
  • Modifiers: ``
  • Return: ModelDebugName

คืออะไร

ดำเนินการ rootName ตาม implementation ของ ModelBaker

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelBaker instance = ...;
ModelDebugName result = instance.rootName();

net.minecraft.client.resources.model.ModelBaker#sprites()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBaker.java:12
  • Modifiers: ``
  • Return: SpriteGetter

คืออะไร

ดำเนินการ sprites ตาม implementation ของ ModelBaker

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelBaker instance = ...;
SpriteGetter result = instance.sprites();

ModelBakery

  • Full name: net.minecraft.client.resources.model.ModelBakery
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelBakery.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.ModelBakery#bakeModels(ModelBakery.TextureGetter)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBakery.java:64
  • Modifiers: public
  • Return: ModelBakery.BakingResult

คืออะไร

ดำเนินการ bakeModels ตาม implementation ของ ModelBakery

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: bakeWithTopModelValues(), ModelBakerImpl(), size(), forEach(), bake(), put(), warn(), BakingContext(). สร้างออบเจ็กต์: ModelBakery.ModelBakerImpl, HashMap<>, MissingItemModel, ItemModel.BakingContext. คืนค่า: new ModelBakery.BakingResult(bakedModel, map, itemModel, map2, map3).

Parameters

  • ModelBakery.TextureGetter textureGetter

ตัวอย่างใช้งาน

ModelBakery instance = ...;
ModelBakery.TextureGetter textureGetter = ...;
ModelBakery.BakingResult result = instance.bakeModels(textureGetter);

net.minecraft.client.resources.model.ModelBakery#ModelBakery(EntityModelSet,Map<ModelResourceLocation, UnbakedBlockStateModel>,Map<ResourceLocation, ClientItem>,Map<ResourceLocation, UnbakedModel>,UnbakedModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBakery.java:50
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelBakery ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entityModelSet, unbakedBlockStateModels, clientInfos, unbakedPlainModels, missingModel.

Parameters

  • EntityModelSet entityModelSet
  • Map<ModelResourceLocation, UnbakedBlockStateModel> map
  • Map<ResourceLocation, ClientItem> map2
  • Map<ResourceLocation, UnbakedModel> map3
  • UnbakedModel unbakedModel

ตัวอย่างใช้งาน

EntityModelSet entityModelSet = ...;
Map<ModelResourceLocation, UnbakedBlockStateModel> map = ...;
Map<ResourceLocation, ClientItem> map2 = ...;
Map<ResourceLocation, UnbakedModel> map3 = ...;
UnbakedModel unbakedModel = ...;
ModelBakery instance = new ModelBakery(entityModelSet, map, map2, map3, unbakedModel);

ModelBakery$TextureGetter

  • Full name: net.minecraft.client.resources.model.ModelBakery$TextureGetter
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelBakery.java
  • Type: interface
  • Modifiers: public

net.minecraft.client.resources.model.ModelBakery$TextureGetter#bind(ModelDebugName)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBakery.java:163
  • Modifiers: default
  • Return: SpriteGetter

คืออะไร

ผูก bind

ทำงานยังไง

เรียกต่อ: get(), reportMissingReference(). สร้างออบเจ็กต์: SpriteGetter. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ModelDebugName modelDebugName

ตัวอย่างใช้งาน

ModelBakery.TextureGetter instance = ...;
ModelDebugName modelDebugName = ...;
SpriteGetter result = instance.bind(modelDebugName);

net.minecraft.client.resources.model.ModelBakery$TextureGetter#get(ModelDebugName,Material)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBakery.java:159
  • Modifiers: ``
  • Return: TextureAtlasSprite

คืออะไร

อ่านค่า get

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ModelDebugName modelDebugName
  • Material material

ตัวอย่างใช้งาน

ModelBakery.TextureGetter instance = ...;
ModelDebugName modelDebugName = ...;
Material material = ...;
TextureAtlasSprite result = instance.get(modelDebugName, material);

net.minecraft.client.resources.model.ModelBakery$TextureGetter#reportMissingReference(ModelDebugName,String)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelBakery.java:161
  • Modifiers: ``
  • Return: TextureAtlasSprite

คืออะไร

ดำเนินการ reportMissingReference ตาม implementation ของ ModelBakery$TextureGetter

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ModelDebugName modelDebugName
  • String string

ตัวอย่างใช้งาน

ModelBakery.TextureGetter instance = ...;
ModelDebugName modelDebugName = ...;
TextureAtlasSprite result = instance.reportMissingReference(modelDebugName, "value");

ModelDiscovery

  • Full name: net.minecraft.client.resources.model.ModelDiscovery
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelDiscovery.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.ModelDiscovery#addRoot(ResolvableModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelDiscovery.java:36
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Root

ทำงานยังไง

เรียกต่อ: add().

Parameters

  • ResolvableModel resolvableModel

ตัวอย่างใช้งาน

ModelDiscovery instance = ...;
ResolvableModel resolvableModel = ...;
instance.addRoot(resolvableModel);

net.minecraft.client.resources.model.ModelDiscovery#discoverDependencies()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelDiscovery.java:40
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ discoverDependencies ตาม implementation ของ ModelDiscovery

ทำงานยังไง

เรียกต่อ: forEach(), resolveDependencies(), ResolverImpl(). สร้างออบเจ็กต์: ModelDiscovery.ResolverImpl.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelDiscovery instance = ...;
instance.discoverDependencies();

net.minecraft.client.resources.model.ModelDiscovery#getReferencedModels()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelDiscovery.java:44
  • Modifiers: public
  • Return: Map<ResourceLocation, UnbakedModel>

คืออะไร

อ่านค่า Referenced Models

ทำงานยังไง

คืนค่า: this.referencedModels.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelDiscovery instance = ...;
Map<ResourceLocation, UnbakedModel> result = instance.getReferencedModels();

net.minecraft.client.resources.model.ModelDiscovery#getUnreferencedModels()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelDiscovery.java:48
  • Modifiers: public
  • Return: Set<ResourceLocation>

คืออะไร

อ่านค่า Unreferenced Models

ทำงานยังไง

เรียกต่อ: difference(), keySet(). คืนค่า: Sets.difference(this.inputModels.keySet(), this.referencedModels.keySet()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelDiscovery instance = ...;
Set<ResourceLocation> result = instance.getUnreferencedModels();

net.minecraft.client.resources.model.ModelDiscovery#ModelDiscovery(Map<ResourceLocation, UnbakedModel>,UnbakedModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelDiscovery.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelDiscovery ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: inputModels, missingModel. เรียกต่อ: put().

Parameters

  • Map<ResourceLocation, UnbakedModel> map
  • UnbakedModel unbakedModel

ตัวอย่างใช้งาน

Map<ResourceLocation, UnbakedModel> map = ...;
UnbakedModel unbakedModel = ...;
ModelDiscovery instance = new ModelDiscovery(map, unbakedModel);

net.minecraft.client.resources.model.ModelDiscovery#registerSpecialModels()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelDiscovery.java:32
  • Modifiers: public
  • Return: void

คืออะไร

ลงทะเบียน Special Models

ทำงานยังไง

เรียกต่อ: put(). สร้างออบเจ็กต์: ItemModelGenerator.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelDiscovery instance = ...;
instance.registerSpecialModels();

ModelGroupCollector

  • Full name: net.minecraft.client.resources.model.ModelGroupCollector
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelGroupCollector.java
  • Type: class
  • Modifiers: public

net.minecraft.client.resources.model.ModelGroupCollector#build(BlockColors,BlockStateModelLoader.LoadedModels)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelGroupCollector.java:25
  • Modifiers: public static
  • Return: Object2IntMap<BlockState>

คืออะไร

สร้าง build

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: models(), forEach(), computeIfAbsent(), state(), getBlock(), copyOf(), getColoringProperties(), create(). สร้างออบเจ็กต์: HashMap<>, Object2IntOpenHashMap<>. คืนค่า: object2IntMap.

Parameters

  • BlockColors blockColors
  • BlockStateModelLoader.LoadedModels loadedModels

ตัวอย่างใช้งาน

BlockColors blockColors = ...;
BlockStateModelLoader.LoadedModels loadedModels = ...;
Object2IntMap<BlockState> result = ModelGroupCollector.build(blockColors, loadedModels);

ModelManager

  • Full name: net.minecraft.client.resources.model.ModelManager
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelManager.java
  • Type: class
  • Modifiers: public
  • Implements: PreparableReloadListener,AutoCloseable,FabricBakedModelManager

net.minecraft.client.resources.model.ModelManager#close()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:322
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelManager instance = ...;
instance.close();

net.minecraft.client.resources.model.ModelManager#entityModels()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:335
  • Modifiers: public
  • Return: Supplier<EntityModelSet>

คืออะไร

ดำเนินการ entityModels ตาม implementation ของ ModelManager

ทำงานยังไง

คืนค่า: () -> this.entityModelSet.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelManager instance = ...;
Supplier<EntityModelSet> result = instance.entityModels();

net.minecraft.client.resources.model.ModelManager#getAtlas(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:318
  • Modifiers: public
  • Return: TextureAtlas

คืออะไร

อ่านค่า Atlas

ทำงานยังไง

คืนค่า: this.atlases.getAtlas(resourceLocation).

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

ModelManager instance = ...;
ResourceLocation resourceLocation = ...;
TextureAtlas result = instance.getAtlas(resourceLocation);

net.minecraft.client.resources.model.ModelManager#getBlockModelShaper()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:114
  • Modifiers: public
  • Return: BlockModelShaper

คืออะไร

อ่านค่า Block Model Shaper

ทำงานยังไง

คืนค่า: this.blockModelShaper.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelManager instance = ...;
BlockModelShaper result = instance.getBlockModelShaper();

net.minecraft.client.resources.model.ModelManager#getItemModel(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:106
  • Modifiers: public
  • Return: ItemModel

คืออะไร

อ่านค่า Item Model

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: this.bakedItemStackModels.getOrDefault(resourceLocation, this.missingItemModel).

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

ModelManager instance = ...;
ResourceLocation resourceLocation = ...;
ItemModel result = instance.getItemModel(resourceLocation);

net.minecraft.client.resources.model.ModelManager#getItemProperties(ResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:110
  • Modifiers: public
  • Return: ClientItem.Properties

คืออะไร

อ่านค่า Item Properties

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: this.itemProperties.getOrDefault(resourceLocation, ClientItem.Properties.DEFAULT).

Parameters

  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

ModelManager instance = ...;
ResourceLocation resourceLocation = ...;
ClientItem.Properties result = instance.getItemProperties(resourceLocation);

net.minecraft.client.resources.model.ModelManager#getMissingModel()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:102
  • Modifiers: public
  • Return: BakedModel

คืออะไร

อ่านค่า Missing Model

ทำงานยังไง

คืนค่า: this.missingModel.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelManager instance = ...;
BakedModel result = instance.getMissingModel();

net.minecraft.client.resources.model.ModelManager#getModel(ModelResourceLocation)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:98
  • Modifiers: public
  • Return: BakedModel

คืออะไร

อ่านค่า Model

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: this.bakedBlockStateModels.getOrDefault(modelResourceLocation, this.missingModel).

Parameters

  • ModelResourceLocation modelResourceLocation

ตัวอย่างใช้งาน

ModelManager instance = ...;
ModelResourceLocation modelResourceLocation = ...;
BakedModel result = instance.getModel(modelResourceLocation);

net.minecraft.client.resources.model.ModelManager#ModelManager(TextureManager,BlockColors,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:91
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelManager ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: blockColors, maxMipmapLevels, blockModelShaper, atlases. สร้างออบเจ็กต์: BlockModelShaper, AtlasSet.

Parameters

  • TextureManager textureManager
  • BlockColors blockColors
  • int i

ตัวอย่างใช้งาน

TextureManager textureManager = ...;
BlockColors blockColors = ...;
ModelManager instance = new ModelManager(textureManager, blockColors, 0);

net.minecraft.client.resources.model.ModelManager#reload(PreparationBarrier,ResourceManager,Executor,Executor)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:118
  • Modifiers: public final
  • Return: CompletableFuture<Void>

คืออะไร

ดำเนินการ reload ตาม implementation ของ ModelManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: missingModel(), supplyAsync(), thenApplyAsync(), loadBlockModels(), loadBlockStates(), scheduleLoad(), allOf(), discoverModelDependencies(). สร้างออบเจ็กต์: ModelBakery. คืนค่า: loadModels(Profiler.get(), map2, modelBakery, object2IntMap, completableFuture.join(), completableFuture2.join()).

Parameters

  • PreparationBarrier preparationBarrier
  • ResourceManager resourceManager
  • Executor executor
  • Executor executor2

ตัวอย่างใช้งาน

ModelManager instance = ...;
PreparationBarrier preparationBarrier = ...;
ResourceManager resourceManager = ...;
Executor executor = ...;
Executor executor2 = ...;
CompletableFuture<Void> result = instance.reload(preparationBarrier, resourceManager, executor, executor2);

net.minecraft.client.resources.model.ModelManager#requiresRender(BlockState,BlockState)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:300
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ requiresRender ตาม implementation ของ ModelManager

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInt(), getFluidState(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • BlockState blockState
  • BlockState blockState2

ตัวอย่างใช้งาน

ModelManager instance = ...;
BlockState blockState = ...;
BlockState blockState2 = ...;
boolean result = instance.requiresRender(blockState, blockState2);

net.minecraft.client.resources.model.ModelManager#specialBlockModelRenderer()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:331
  • Modifiers: public
  • Return: Supplier<SpecialBlockModelRenderer>

คืออะไร

ดำเนินการ specialBlockModelRenderer ตาม implementation ของ ModelManager

ทำงานยังไง

คืนค่า: () -> this.specialBlockModelRenderer.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelManager instance = ...;
Supplier<SpecialBlockModelRenderer> result = instance.specialBlockModelRenderer();

net.minecraft.client.resources.model.ModelManager#updateMaxMipLevel(int)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelManager.java:327
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต Max Mip Level

ทำงานยังไง

แก้ state: maxMipmapLevels.

Parameters

  • int i

ตัวอย่างใช้งาน

ModelManager instance = ...;
instance.updateMaxMipLevel(0);

ModelResourceLocation

  • Full name: net.minecraft.client.resources.model.ModelResourceLocation
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelResourceLocation.java
  • Type: record
  • Modifiers: public

net.minecraft.client.resources.model.ModelResourceLocation#getVariant()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelResourceLocation.java:18
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Variant

ทำงานยังไง

คืนค่า: this.variant.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelResourceLocation instance = ...;
String result = instance.getVariant();

net.minecraft.client.resources.model.ModelResourceLocation#ModelResourceLocation(ResourceLocation,String)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelResourceLocation.java:10
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ModelResourceLocation ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: lowercaseVariant().

Parameters

  • ResourceLocation id
  • String variant

ตัวอย่างใช้งาน

ResourceLocation id = ...;
ModelResourceLocation instance = new ModelResourceLocation(id, "value");

net.minecraft.client.resources.model.ModelResourceLocation#toString()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelResourceLocation.java:22
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ ModelResourceLocation

ทำงานยังไง

คืนค่า: this.id + "#" + this.variant.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelResourceLocation instance = ...;
String result = instance.toString();

ModelState

  • Full name: net.minecraft.client.resources.model.ModelState
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ModelState.java
  • Type: interface
  • Modifiers: public

net.minecraft.client.resources.model.ModelState#getRotation()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelState.java:9
  • Modifiers: default
  • Return: Transformation

คืออะไร

อ่านค่า Rotation

ทำงานยังไง

เรียกต่อ: identity(). คืนค่า: Transformation.identity().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelState instance = ...;
Transformation result = instance.getRotation();

net.minecraft.client.resources.model.ModelState#isUvLocked()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ModelState.java:13
  • Modifiers: default
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Uv Locked

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ModelState instance = ...;
boolean result = instance.isUvLocked();

MultiPartBakedModel

  • Full name: net.minecraft.client.resources.model.MultiPartBakedModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/MultiPartBakedModel.java
  • Type: class
  • Modifiers: public
  • Extends: DelegateBakedModel

net.minecraft.client.resources.model.MultiPartBakedModel#getQuads(BlockState,Direction,RandomSource)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/MultiPartBakedModel.java:36
  • Modifiers: public
  • Return: List<BakedQuad>

คืออะไร

อ่านค่า Quads

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: emptyList(), get(), size(), test(), set(), put(), nextLong(), length(). สร้างออบเจ็กต์: BitSet, ArrayList<>. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • BlockState blockState
  • Direction direction
  • RandomSource randomSource

ตัวอย่างใช้งาน

MultiPartBakedModel instance = ...;
BlockState blockState = ...;
Direction direction = ...;
RandomSource randomSource = ...;
List<BakedQuad> result = instance.getQuads(blockState, direction, randomSource);

net.minecraft.client.resources.model.MultiPartBakedModel#MultiPartBakedModel(List<MultiPartBakedModel.Selector>)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/MultiPartBakedModel.java:31
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MultiPartBakedModel ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: selectors. เรียกต่อ: getFirstModel().

Parameters

  • List<MultiPartBakedModel.Selector> list

ตัวอย่างใช้งาน

List<MultiPartBakedModel.Selector> list = ...;
MultiPartBakedModel instance = new MultiPartBakedModel(list);

ResolvableModel

  • Full name: net.minecraft.client.resources.model.ResolvableModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/ResolvableModel.java
  • Type: interface
  • Modifiers: public

net.minecraft.client.resources.model.ResolvableModel#resolveDependencies(ResolvableModel.Resolver)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/ResolvableModel.java:9
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ resolveDependencies ตาม implementation ของ ResolvableModel

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ResolvableModel.Resolver resolver

ตัวอย่างใช้งาน

ResolvableModel instance = ...;
ResolvableModel.Resolver resolver = ...;
instance.resolveDependencies(resolver);

SimpleBakedModel

  • Full name: net.minecraft.client.resources.model.SimpleBakedModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/SimpleBakedModel.java
  • Type: class
  • Modifiers: public
  • Implements: BakedModel

net.minecraft.client.resources.model.SimpleBakedModel#bakeElements(List<BlockElement>,TextureSlots,SpriteGetter,ModelState,boolean,boolean,boolean,ItemTransforms)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:51
  • Modifiers: public static
  • Return: BakedModel

คืออะไร

ดำเนินการ bakeElements ตาม implementation ของ SimpleBakedModel

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: findSprite(), Builder(), particle(), keySet(), get(), texture(), cullForDirection(), addUnculledFace(). สร้างออบเจ็กต์: SimpleBakedModel.Builder. คืนค่า: builder.build().

Parameters

  • List<BlockElement> list
  • TextureSlots textureSlots
  • SpriteGetter spriteGetter
  • ModelState modelState
  • boolean bl
  • boolean bl2
  • boolean bl3
  • ItemTransforms itemTransforms

ตัวอย่างใช้งาน

List<BlockElement> list = ...;
TextureSlots textureSlots = ...;
SpriteGetter spriteGetter = ...;
ModelState modelState = ...;
ItemTransforms itemTransforms = ...;
BakedModel result = SimpleBakedModel.bakeElements(list, textureSlots, spriteGetter, modelState, true, true, true, itemTransforms);

net.minecraft.client.resources.model.SimpleBakedModel#getParticleIcon()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:123
  • Modifiers: public
  • Return: TextureAtlasSprite

คืออะไร

อ่านค่า Particle Icon

ทำงานยังไง

คืนค่า: this.particleIcon.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel instance = ...;
TextureAtlasSprite result = instance.getParticleIcon();

net.minecraft.client.resources.model.SimpleBakedModel#getQuads(BlockState,Direction,RandomSource)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:103
  • Modifiers: public
  • Return: List<BakedQuad>

คืออะไร

อ่านค่า Quads

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: direction == null ? this.unculledFaces : this.culledFaces.get(direction).

Parameters

  • BlockState blockState
  • Direction direction
  • RandomSource randomSource

ตัวอย่างใช้งาน

SimpleBakedModel instance = ...;
BlockState blockState = ...;
Direction direction = ...;
RandomSource randomSource = ...;
List<BakedQuad> result = instance.getQuads(blockState, direction, randomSource);

net.minecraft.client.resources.model.SimpleBakedModel#getTransforms()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:128
  • Modifiers: public
  • Return: ItemTransforms

คืออะไร

อ่านค่า Transforms

ทำงานยังไง

คืนค่า: this.transforms.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel instance = ...;
ItemTransforms result = instance.getTransforms();

net.minecraft.client.resources.model.SimpleBakedModel#isGui3d()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:113
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Gui3d

ทำงานยังไง

คืนค่า: this.isGui3d.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel instance = ...;
boolean result = instance.isGui3d();

net.minecraft.client.resources.model.SimpleBakedModel#SimpleBakedModel(List<BakedQuad>,Map<Direction, List<BakedQuad>>,boolean,boolean,boolean,TextureAtlasSprite,ItemTransforms)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SimpleBakedModel ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: unculledFaces, culledFaces, hasAmbientOcclusion, isGui3d, usesBlockLight, particleIcon.

Parameters

  • List<BakedQuad> list
  • Map<Direction, List<BakedQuad>> map
  • boolean bl
  • boolean bl2
  • boolean bl3
  • TextureAtlasSprite textureAtlasSprite
  • ItemTransforms itemTransforms

ตัวอย่างใช้งาน

List<BakedQuad> list = ...;
Map<Direction, List<BakedQuad>> map = ...;
TextureAtlasSprite textureAtlasSprite = ...;
ItemTransforms itemTransforms = ...;
SimpleBakedModel instance = new SimpleBakedModel(list, map, true, true, true, textureAtlasSprite, itemTransforms);

net.minecraft.client.resources.model.SimpleBakedModel#useAmbientOcclusion()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:108
  • Modifiers: public
  • Return: boolean

คืออะไร

ใช้งาน Ambient Occlusion

ทำงานยังไง

คืนค่า: this.hasAmbientOcclusion.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel instance = ...;
boolean result = instance.useAmbientOcclusion();

net.minecraft.client.resources.model.SimpleBakedModel#usesBlockLight()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:118
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ usesBlockLight ตาม implementation ของ SimpleBakedModel

ทำงานยังไง

คืนค่า: this.usesBlockLight.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel instance = ...;
boolean result = instance.usesBlockLight();

SimpleBakedModel$Builder

  • Full name: net.minecraft.client.resources.model.SimpleBakedModel$Builder
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/SimpleBakedModel.java
  • Type: class
  • Modifiers: public static

net.minecraft.client.resources.model.SimpleBakedModel$Builder#addCulledFace(Direction,BakedQuad)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:155
  • Modifiers: public
  • Return: SimpleBakedModel.Builder

คืออะไร

เพิ่ม Culled Face

ทำงานยังไง

เรียกต่อ: get(), add(). คืนค่า: this.

Parameters

  • Direction direction
  • BakedQuad bakedQuad

ตัวอย่างใช้งาน

SimpleBakedModel.Builder instance = ...;
Direction direction = ...;
BakedQuad bakedQuad = ...;
SimpleBakedModel.Builder result = instance.addCulledFace(direction, bakedQuad);

net.minecraft.client.resources.model.SimpleBakedModel$Builder#addUnculledFace(BakedQuad)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:160
  • Modifiers: public
  • Return: SimpleBakedModel.Builder

คืออะไร

เพิ่ม Unculled Face

ทำงานยังไง

เรียกต่อ: add(). คืนค่า: this.

Parameters

  • BakedQuad bakedQuad

ตัวอย่างใช้งาน

SimpleBakedModel.Builder instance = ...;
BakedQuad bakedQuad = ...;
SimpleBakedModel.Builder result = instance.addUnculledFace(bakedQuad);

net.minecraft.client.resources.model.SimpleBakedModel$Builder#build()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:174
  • Modifiers: public
  • Return: BakedModel

คืออะไร

สร้าง build

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: particleIcon. เรียกต่อ: transformValues(). สร้างออบเจ็กต์: RuntimeException, SimpleBakedModel, EnumMap<>.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel.Builder instance = ...;
BakedModel result = instance.build();

net.minecraft.client.resources.model.SimpleBakedModel$Builder#Builder(boolean,boolean,boolean,ItemTransforms)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:144
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SimpleBakedModel.Builder ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

มีการวนลูป. แก้ state: hasAmbientOcclusion, usesBlockLight, isGui3d, transforms. เรียกต่อ: values(), put(), builder().

Parameters

  • boolean bl
  • boolean bl2
  • boolean bl3
  • ItemTransforms itemTransforms

ตัวอย่างใช้งาน

ItemTransforms itemTransforms = ...;
SimpleBakedModel.Builder instance = new SimpleBakedModel.Builder(true, true, true, itemTransforms);

net.minecraft.client.resources.model.SimpleBakedModel$Builder#item()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:170
  • Modifiers: public
  • Return: SimpleBakedModel.Builder

คืออะไร

ดำเนินการ item ตาม implementation ของ SimpleBakedModel$Builder

ทำงานยังไง

คืนค่า: this.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SimpleBakedModel.Builder instance = ...;
SimpleBakedModel.Builder result = instance.item();

net.minecraft.client.resources.model.SimpleBakedModel$Builder#particle(TextureAtlasSprite)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SimpleBakedModel.java:165
  • Modifiers: public
  • Return: SimpleBakedModel.Builder

คืออะไร

ดำเนินการ particle ตาม implementation ของ SimpleBakedModel$Builder

ทำงานยังไง

แก้ state: particleIcon. คืนค่า: this.

Parameters

  • TextureAtlasSprite textureAtlasSprite

ตัวอย่างใช้งาน

SimpleBakedModel.Builder instance = ...;
TextureAtlasSprite textureAtlasSprite = ...;
SimpleBakedModel.Builder result = instance.particle(textureAtlasSprite);

SpriteGetter

  • Full name: net.minecraft.client.resources.model.SpriteGetter
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/SpriteGetter.java
  • Type: interface
  • Modifiers: public

net.minecraft.client.resources.model.SpriteGetter#get(Material)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SpriteGetter.java:9
  • Modifiers: ``
  • Return: TextureAtlasSprite

คืออะไร

อ่านค่า get

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • Material material

ตัวอย่างใช้งาน

SpriteGetter instance = ...;
Material material = ...;
TextureAtlasSprite result = instance.get(material);

net.minecraft.client.resources.model.SpriteGetter#reportMissingReference(String)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/SpriteGetter.java:11
  • Modifiers: ``
  • Return: TextureAtlasSprite

คืออะไร

ดำเนินการ reportMissingReference ตาม implementation ของ SpriteGetter

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • String string

ตัวอย่างใช้งาน

SpriteGetter instance = ...;
TextureAtlasSprite result = instance.reportMissingReference("value");

UnbakedModel

  • Full name: net.minecraft.client.resources.model.UnbakedModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/UnbakedModel.java
  • Type: interface
  • Modifiers: public
  • Implements: ResolvableModel

net.minecraft.client.resources.model.UnbakedModel#bake(TextureSlots,ModelBaker,ModelState,boolean,boolean,ItemTransforms)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:16
  • Modifiers: ``
  • Return: BakedModel

คืออะไร

ดำเนินการ bake ตาม implementation ของ UnbakedModel

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • TextureSlots textureSlots
  • ModelBaker modelBaker
  • ModelState modelState
  • boolean bl
  • boolean bl2
  • ItemTransforms itemTransforms

ตัวอย่างใช้งาน

UnbakedModel instance = ...;
TextureSlots textureSlots = ...;
ModelBaker modelBaker = ...;
ModelState modelState = ...;
ItemTransforms itemTransforms = ...;
BakedModel result = instance.bake(textureSlots, modelBaker, modelState, true, true, itemTransforms);

net.minecraft.client.resources.model.UnbakedModel#bakeWithTopModelValues(UnbakedModel,ModelBaker,ModelState)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:42
  • Modifiers: static
  • Return: BakedModel

คืออะไร

ดำเนินการ bakeWithTopModelValues ตาม implementation ของ UnbakedModel

ทำงานยังไง

เรียกต่อ: getTopTextureSlots(), rootName(), getTopAmbientOcclusion(), getTopGuiLight(), lightLikeBlock(), getTopTransforms(), bake(). คืนค่า: unbakedModel.bake(textureSlots, modelBaker, modelState, bl, bl2, itemTransforms).

Parameters

  • UnbakedModel unbakedModel
  • ModelBaker modelBaker
  • ModelState modelState

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
ModelBaker modelBaker = ...;
ModelState modelState = ...;
BakedModel result = UnbakedModel.bakeWithTopModelValues(unbakedModel, modelBaker, modelState);

net.minecraft.client.resources.model.UnbakedModel#getAmbientOcclusion()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:18
  • Modifiers: default
  • Return: Boolean

คืออะไร

อ่านค่า Ambient Occlusion

ทำงานยังไง

คืนค่า: null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UnbakedModel instance = ...;
Boolean result = instance.getAmbientOcclusion();

net.minecraft.client.resources.model.UnbakedModel#getGuiLight()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:23
  • Modifiers: default
  • Return: UnbakedModel.GuiLight

คืออะไร

อ่านค่า Gui Light

ทำงานยังไง

คืนค่า: null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UnbakedModel instance = ...;
UnbakedModel.GuiLight result = instance.getGuiLight();

net.minecraft.client.resources.model.UnbakedModel#getParent()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:37
  • Modifiers: default
  • Return: UnbakedModel

คืออะไร

อ่านค่า Parent

ทำงานยังไง

คืนค่า: null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UnbakedModel instance = ...;
UnbakedModel result = instance.getParent();

net.minecraft.client.resources.model.UnbakedModel#getTextureSlots()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:33
  • Modifiers: default
  • Return: TextureSlots.Data

คืออะไร

อ่านค่า Texture Slots

ทำงานยังไง

คืนค่า: TextureSlots.Data.EMPTY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UnbakedModel instance = ...;
TextureSlots.Data result = instance.getTextureSlots();

net.minecraft.client.resources.model.UnbakedModel#getTopAmbientOcclusion(UnbakedModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:61
  • Modifiers: static
  • Return: boolean

คืออะไร

อ่านค่า Top Ambient Occlusion

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getAmbientOcclusion(), getParent(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • UnbakedModel unbakedModel

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
boolean result = UnbakedModel.getTopAmbientOcclusion(unbakedModel);

net.minecraft.client.resources.model.UnbakedModel#getTopGuiLight(UnbakedModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:74
  • Modifiers: static
  • Return: UnbakedModel.GuiLight

คืออะไร

อ่านค่า Top Gui Light

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getGuiLight(), getParent(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • UnbakedModel unbakedModel

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
UnbakedModel.GuiLight result = UnbakedModel.getTopGuiLight(unbakedModel);

net.minecraft.client.resources.model.UnbakedModel#getTopTextureSlots(UnbakedModel,ModelDebugName)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:50
  • Modifiers: static
  • Return: TextureSlots

คืออะไร

อ่านค่า Top Texture Slots

ทำงานยังไง

มีการวนลูป. เรียกต่อ: Resolver(), addLast(), getTextureSlots(), getParent(), resolve(). สร้างออบเจ็กต์: TextureSlots.Resolver. คืนค่า: resolver.resolve(modelDebugName).

Parameters

  • UnbakedModel unbakedModel
  • ModelDebugName modelDebugName

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
ModelDebugName modelDebugName = ...;
TextureSlots result = UnbakedModel.getTopTextureSlots(unbakedModel, modelDebugName);

net.minecraft.client.resources.model.UnbakedModel#getTopTransform(UnbakedModel,ItemDisplayContext)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:87
  • Modifiers: static
  • Return: ItemTransform

คืออะไร

อ่านค่า Top Transform

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getTransforms(), getTransform(), getParent(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • UnbakedModel unbakedModel
  • ItemDisplayContext itemDisplayContext

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
ItemDisplayContext itemDisplayContext = ...;
ItemTransform result = UnbakedModel.getTopTransform(unbakedModel, itemDisplayContext);

net.minecraft.client.resources.model.UnbakedModel#getTopTransforms(UnbakedModel)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:103
  • Modifiers: static
  • Return: ItemTransforms

คืออะไร

อ่านค่า Top Transforms

ทำงานยังไง

เรียกต่อ: getTopTransform(). สร้างออบเจ็กต์: ItemTransforms. คืนค่า: new ItemTransforms(itemTransform, itemTransform2, itemTransform3, itemTransform4, itemTransform5, itemTransform6, itemTransform7, itemTransform8).

Parameters

  • UnbakedModel unbakedModel

ตัวอย่างใช้งาน

UnbakedModel unbakedModel = ...;
ItemTransforms result = UnbakedModel.getTopTransforms(unbakedModel);

net.minecraft.client.resources.model.UnbakedModel#getTransforms()

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/UnbakedModel.java:28
  • Modifiers: default
  • Return: ItemTransforms

คืออะไร

อ่านค่า Transforms

ทำงานยังไง

คืนค่า: null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UnbakedModel instance = ...;
ItemTransforms result = instance.getTransforms();

WeightedBakedModel

  • Full name: net.minecraft.client.resources.model.WeightedBakedModel
  • Package: net.minecraft.client.resources.model
  • Source: clientOnlynet/minecraft/client/resources/model/WeightedBakedModel.java
  • Type: class
  • Modifiers: public
  • Extends: DelegateBakedModel

net.minecraft.client.resources.model.WeightedBakedModel#getQuads(BlockState,Direction,RandomSource)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/WeightedBakedModel.java:24
  • Modifiers: public
  • Return: List<BakedQuad>

คืออะไร

อ่านค่า Quads

ทำงานยังไง

เรียกต่อ: getRandomValue(), map(), orElse(), emptyList(). คืนค่า: this.list.getRandomValue(randomSource).map(bakedModel -> bakedModel.getQuads(blockState, direction, randomSource)).orElse(Collections.emptyList()).

Parameters

  • BlockState blockState
  • Direction direction
  • RandomSource randomSource

ตัวอย่างใช้งาน

WeightedBakedModel instance = ...;
BlockState blockState = ...;
Direction direction = ...;
RandomSource randomSource = ...;
List<BakedQuad> result = instance.getQuads(blockState, direction, randomSource);

net.minecraft.client.resources.model.WeightedBakedModel#WeightedBakedModel(SimpleWeightedRandomList<BakedModel>)

  • Origin: clientOnly
  • Source: net/minecraft/client/resources/model/WeightedBakedModel.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WeightedBakedModel ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: list. เรียกต่อ: unwrap(), getFirst(), data().

Parameters

  • SimpleWeightedRandomList<BakedModel> simpleWeightedRandomList

ตัวอย่างใช้งาน

SimpleWeightedRandomList<BakedModel> simpleWeightedRandomList = ...;
WeightedBakedModel instance = new WeightedBakedModel(simpleWeightedRandomList);