Package net.minecraft.client.data.models.model
Part 1/1
DelegatedModel
- Full name:
net.minecraft.client.data.models.model.DelegatedModel - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/DelegatedModel.java - Type:
class - Modifiers:
public - Implements:
ModelInstance
net.minecraft.client.data.models.model.DelegatedModel#DelegatedModel(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/DelegatedModel.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DelegatedModel ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: parent.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
DelegatedModel instance = new DelegatedModel(resourceLocation);
net.minecraft.client.data.models.model.DelegatedModel#get()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/DelegatedModel.java:17 - Modifiers:
public - Return:
JsonElement
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: addProperty(), toString(). สร้างออบเจ็กต์: JsonObject. คืนค่า: jsonObject.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemModelUtils
- Full name:
net.minecraft.client.data.models.model.ItemModelUtils - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/ItemModelUtils.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.model.ItemModelUtils#composite(ItemModel.Unbaked[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:46 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ composite ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: CompositeModel.Unbaked. คืนค่า: new CompositeModel.Unbaked(List.of(unbakeds)).
Parameters
ItemModel.Unbaked[] unbakeds
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ItemModelUtils#conditional(ConditionalItemModelProperty,ItemModel.Unbaked,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:84 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ conditional ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(). สร้างออบเจ็กต์: ConditionalItemModel.Unbaked. คืนค่า: new ConditionalItemModel.Unbaked(conditionalItemModelProperty, unbaked, unbaked2).
Parameters
ConditionalItemModelProperty conditionalItemModelPropertyItemModel.Unbaked unbakedItemModel.Unbaked unbaked2
ตัวอย่างใช้งาน
ConditionalItemModelProperty conditionalItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
ItemModel.Unbaked unbaked2 = ...;
ItemModel.Unbaked result = ItemModelUtils.conditional(conditionalItemModelProperty, unbaked, unbaked2);
net.minecraft.client.data.models.model.ItemModelUtils#constantTint(int)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:42 - Modifiers:
public static - Return:
ItemTintSource
คืออะไร
ดำเนินการ constantTint ตาม implementation ของ ItemModelUtils
ทำงานยังไง
สร้างออบเจ็กต์: Constant. คืนค่า: new Constant(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ItemModelUtils#hasComponent(DataComponentType<?>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:122 - Modifiers:
public static - Return:
ConditionalItemModelProperty
คืออะไร
ตรวจสอบว่ามี Component
ทำงานยังไง
สร้างออบเจ็กต์: HasComponent. คืนค่า: new HasComponent(dataComponentType, false).
Parameters
DataComponentType<?> dataComponentType
ตัวอย่างใช้งาน
DataComponentType<?> dataComponentType = ...;
ConditionalItemModelProperty result = ItemModelUtils.hasComponent(dataComponentType);
net.minecraft.client.data.models.model.ItemModelUtils#inOverworld(ItemModel.Unbaked,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:126 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ inOverworld ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: select(), when(). สร้างออบเจ็กต์: ContextDimension. คืนค่า: select(new ContextDimension(), unbaked2, when(Level.OVERWORLD, unbaked)).
Parameters
ItemModel.Unbaked unbakedItemModel.Unbaked unbaked2
ตัวอย่างใช้งาน
ItemModel.Unbaked unbaked = ...;
ItemModel.Unbaked unbaked2 = ...;
ItemModel.Unbaked result = ItemModelUtils.inOverworld(unbaked, unbaked2);
net.minecraft.client.data.models.model.ItemModelUtils#isUsingItem()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:118 - Modifiers:
public static - Return:
ConditionalItemModelProperty
คืออะไร
ตรวจสอบสถานะ Using Item
ทำงานยังไง
สร้างออบเจ็กต์: IsUsingItem. คืนค่า: new IsUsingItem().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ItemModelUtils#isXmas(ItemModel.Unbaked,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:140 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ตรวจสอบสถานะ Xmas
ทำงานยังไง
เรียกต่อ: select(), create(), empty(), of(), when(). คืนค่า: select(LocalTime.create("MM-dd", "", Optional.empty()), unbaked2, List.of(when(List.of("12-24", "12-25", "12-26"), unbaked))).
Parameters
ItemModel.Unbaked unbakedItemModel.Unbaked unbaked2
ตัวอย่างใช้งาน
ItemModel.Unbaked unbaked = ...;
ItemModel.Unbaked unbaked2 = ...;
ItemModel.Unbaked result = ItemModelUtils.isXmas(unbaked, unbaked2);
net.minecraft.client.data.models.model.ItemModelUtils#override(ItemModel.Unbaked,float)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:54 - Modifiers:
public static - Return:
RangeSelectItemModel.Entry
คืออะไร
ดำเนินการ override ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Entry(). สร้างออบเจ็กต์: RangeSelectItemModel.Entry. คืนค่า: new RangeSelectItemModel.Entry(f, unbaked).
Parameters
ItemModel.Unbaked unbakedfloat f
ตัวอย่างใช้งาน
ItemModel.Unbaked unbaked = ...;
RangeSelectItemModel.Entry result = ItemModelUtils.override(unbaked, 0.0F);
net.minecraft.client.data.models.model.ItemModelUtils#plainModel(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:34 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ plainModel ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: BlockModelWrapper.Unbaked. คืนค่า: new BlockModelWrapper.Unbaked(resourceLocation, List.of()).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ItemModel.Unbaked result = ItemModelUtils.plainModel(resourceLocation);
net.minecraft.client.data.models.model.ItemModelUtils#rangeSelect(RangeSelectItemModelProperty,float,ItemModel.Unbaked,RangeSelectItemModel.Entry[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:64 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ rangeSelect ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: RangeSelectItemModel.Unbaked. คืนค่า: new RangeSelectItemModel.Unbaked(rangeSelectItemModelProperty, f, List.of(entrys), Optional.of(unbaked)).
Parameters
RangeSelectItemModelProperty rangeSelectItemModelPropertyfloat fItemModel.Unbaked unbakedRangeSelectItemModel.Entry[] entrys
ตัวอย่างใช้งาน
RangeSelectItemModelProperty rangeSelectItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
RangeSelectItemModel.Entry[] entrys = ...;
ItemModel.Unbaked result = ItemModelUtils.rangeSelect(rangeSelectItemModelProperty, 0.0F, unbaked, entrys);
net.minecraft.client.data.models.model.ItemModelUtils#rangeSelect(RangeSelectItemModelProperty,float,List<RangeSelectItemModel.Entry>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:80 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ rangeSelect ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), empty(). สร้างออบเจ็กต์: RangeSelectItemModel.Unbaked. คืนค่า: new RangeSelectItemModel.Unbaked(rangeSelectItemModelProperty, f, list, Optional.empty()).
Parameters
RangeSelectItemModelProperty rangeSelectItemModelPropertyfloat fList<RangeSelectItemModel.Entry> list
ตัวอย่างใช้งาน
RangeSelectItemModelProperty rangeSelectItemModelProperty = ...;
List<RangeSelectItemModel.Entry> list = ...;
ItemModel.Unbaked result = ItemModelUtils.rangeSelect(rangeSelectItemModelProperty, 0.0F, list);
net.minecraft.client.data.models.model.ItemModelUtils#rangeSelect(RangeSelectItemModelProperty,ItemModel.Unbaked,List<RangeSelectItemModel.Entry>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:70 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ rangeSelect ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: RangeSelectItemModel.Unbaked. คืนค่า: new RangeSelectItemModel.Unbaked(rangeSelectItemModelProperty, 1.0F, list, Optional.of(unbaked)).
Parameters
RangeSelectItemModelProperty rangeSelectItemModelPropertyItemModel.Unbaked unbakedList<RangeSelectItemModel.Entry> list
ตัวอย่างใช้งาน
RangeSelectItemModelProperty rangeSelectItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
List<RangeSelectItemModel.Entry> list = ...;
ItemModel.Unbaked result = ItemModelUtils.rangeSelect(rangeSelectItemModelProperty, unbaked, list);
net.minecraft.client.data.models.model.ItemModelUtils#rangeSelect(RangeSelectItemModelProperty,ItemModel.Unbaked,RangeSelectItemModel.Entry[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:58 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ rangeSelect ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: RangeSelectItemModel.Unbaked. คืนค่า: new RangeSelectItemModel.Unbaked(rangeSelectItemModelProperty, 1.0F, List.of(entrys), Optional.of(unbaked)).
Parameters
RangeSelectItemModelProperty rangeSelectItemModelPropertyItemModel.Unbaked unbakedRangeSelectItemModel.Entry[] entrys
ตัวอย่างใช้งาน
RangeSelectItemModelProperty rangeSelectItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
RangeSelectItemModel.Entry[] entrys = ...;
ItemModel.Unbaked result = ItemModelUtils.rangeSelect(rangeSelectItemModelProperty, unbaked, entrys);
net.minecraft.client.data.models.model.ItemModelUtils#rangeSelect(RangeSelectItemModelProperty,List<RangeSelectItemModel.Entry>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:76 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ rangeSelect ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), empty(). สร้างออบเจ็กต์: RangeSelectItemModel.Unbaked. คืนค่า: new RangeSelectItemModel.Unbaked(rangeSelectItemModelProperty, 1.0F, list, Optional.empty()).
Parameters
RangeSelectItemModelProperty rangeSelectItemModelPropertyList<RangeSelectItemModel.Entry> list
ตัวอย่างใช้งาน
RangeSelectItemModelProperty rangeSelectItemModelProperty = ...;
List<RangeSelectItemModel.Entry> list = ...;
ItemModel.Unbaked result = ItemModelUtils.rangeSelect(rangeSelectItemModelProperty, list);
net.minecraft.client.data.models.model.ItemModelUtils#select(SelectItemModelProperty<T>,ItemModel.Unbaked,List<SelectItemModel.SwitchCase<T>>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:103 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ select ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: SelectItemModel.Unbaked, SelectItemModel.UnbakedSwitch<>. คืนค่า: new SelectItemModel.Unbaked(new SelectItemModel.UnbakedSwitch<>(selectItemModelProperty, list), Optional.of(unbaked)).
Parameters
SelectItemModelProperty<T> selectItemModelPropertyItemModel.Unbaked unbakedList<SelectItemModel.SwitchCase<T>> list
ตัวอย่างใช้งาน
SelectItemModelProperty<T> selectItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
List<SelectItemModel.SwitchCase<T>> list = ...;
ItemModel.Unbaked result = ItemModelUtils.select(selectItemModelProperty, unbaked, list);
net.minecraft.client.data.models.model.ItemModelUtils#select(SelectItemModelProperty<T>,ItemModel.Unbaked,SelectItemModel.SwitchCase<T>[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:96 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ select ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: select(selectItemModelProperty, unbaked, List.of(switchCases)).
Parameters
SelectItemModelProperty<T> selectItemModelPropertyItemModel.Unbaked unbakedSelectItemModel.SwitchCase<T>[] switchCases
ตัวอย่างใช้งาน
SelectItemModelProperty<T> selectItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
SelectItemModel.SwitchCase<T>[] switchCases = ...;
ItemModel.Unbaked result = ItemModelUtils.select(selectItemModelProperty, unbaked, switchCases);
net.minecraft.client.data.models.model.ItemModelUtils#select(SelectItemModelProperty<T>,List<SelectItemModel.SwitchCase<T>>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:114 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ select ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), empty(). สร้างออบเจ็กต์: SelectItemModel.Unbaked, SelectItemModel.UnbakedSwitch<>. คืนค่า: new SelectItemModel.Unbaked(new SelectItemModel.UnbakedSwitch<>(selectItemModelProperty, list), Optional.empty()).
Parameters
SelectItemModelProperty<T> selectItemModelPropertyList<SelectItemModel.SwitchCase<T>> list
ตัวอย่างใช้งาน
SelectItemModelProperty<T> selectItemModelProperty = ...;
List<SelectItemModel.SwitchCase<T>> list = ...;
ItemModel.Unbaked result = ItemModelUtils.select(selectItemModelProperty, list);
net.minecraft.client.data.models.model.ItemModelUtils#select(SelectItemModelProperty<T>,SelectItemModel.SwitchCase<T>[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:109 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ select ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: select(selectItemModelProperty, List.of(switchCases)).
Parameters
SelectItemModelProperty<T> selectItemModelPropertySelectItemModel.SwitchCase<T>[] switchCases
ตัวอย่างใช้งาน
SelectItemModelProperty<T> selectItemModelProperty = ...;
SelectItemModel.SwitchCase<T>[] switchCases = ...;
ItemModel.Unbaked result = ItemModelUtils.select(selectItemModelProperty, switchCases);
net.minecraft.client.data.models.model.ItemModelUtils#selectBlockItemProperty(Property<T>,ItemModel.Unbaked,Map<T, ItemModel.Unbaked>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:130 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ selectBlockItemProperty ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: entrySet(), stream(), sorted(), comparingByKey(), map(), getName(), getKey(), of(). สร้างออบเจ็กต์: SelectItemModel.SwitchCase<>, ItemBlockState. มีจุด return อย่างน้อย 2 จุด.
Parameters
Property<T> propertyItemModel.Unbaked unbakedMap<T, ItemModel.Unbaked> map
ตัวอย่างใช้งาน
Property<T> property = ...;
ItemModel.Unbaked unbaked = ...;
Map<T, ItemModel.Unbaked> map = ...;
ItemModel.Unbaked result = ItemModelUtils.selectBlockItemProperty(property, unbaked, map);
net.minecraft.client.data.models.model.ItemModelUtils#specialModel(ResourceLocation,SpecialModelRenderer.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:50 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ specialModel ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(). สร้างออบเจ็กต์: SpecialModelWrapper.Unbaked. คืนค่า: new SpecialModelWrapper.Unbaked(resourceLocation, unbaked).
Parameters
ResourceLocation resourceLocationSpecialModelRenderer.Unbaked unbaked
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SpecialModelRenderer.Unbaked unbaked = ...;
ItemModel.Unbaked result = ItemModelUtils.specialModel(resourceLocation, unbaked);
net.minecraft.client.data.models.model.ItemModelUtils#tintedModel(ResourceLocation,ItemTintSource[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:38 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
ดำเนินการ tintedModel ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: Unbaked(), of(). สร้างออบเจ็กต์: BlockModelWrapper.Unbaked. คืนค่า: new BlockModelWrapper.Unbaked(resourceLocation, List.of(itemTintSources)).
Parameters
ResourceLocation resourceLocationItemTintSource[] itemTintSources
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ItemTintSource[] itemTintSources = ...;
ItemModel.Unbaked result = ItemModelUtils.tintedModel(resourceLocation, itemTintSources);
net.minecraft.client.data.models.model.ItemModelUtils#when(List<T>,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:92 - Modifiers:
public static - Return:
SelectItemModel.SwitchCase<T>
คืออะไร
ดำเนินการ when ตาม implementation ของ ItemModelUtils
ทำงานยังไง
สร้างออบเจ็กต์: SelectItemModel.SwitchCase<>. คืนค่า: new SelectItemModel.SwitchCase<>(list, unbaked).
Parameters
List<T> listItemModel.Unbaked unbaked
ตัวอย่างใช้งาน
List<T> list = ...;
ItemModel.Unbaked unbaked = ...;
SelectItemModel.SwitchCase<T> result = ItemModelUtils.when(list, unbaked);
net.minecraft.client.data.models.model.ItemModelUtils#when(T,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ItemModelUtils.java:88 - Modifiers:
public static - Return:
SelectItemModel.SwitchCase<T>
คืออะไร
ดำเนินการ when ตาม implementation ของ ItemModelUtils
ทำงานยังไง
เรียกต่อ: of(). สร้างออบเจ็กต์: SelectItemModel.SwitchCase<>. คืนค่า: new SelectItemModel.SwitchCase<>(List.of(object), unbaked).
Parameters
T objectItemModel.Unbaked unbaked
ตัวอย่างใช้งาน
T object = ...;
ItemModel.Unbaked unbaked = ...;
SelectItemModel.SwitchCase<T> result = ItemModelUtils.when(object, unbaked);
ModelLocationUtils
- Full name:
net.minecraft.client.data.models.model.ModelLocationUtils - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/ModelLocationUtils.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.model.ModelLocationUtils#decorateBlockModelLocation(String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelLocationUtils.java:12 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ decorateBlockModelLocation ตาม implementation ของ ModelLocationUtils
ทำงานยังไง
เรียกต่อ: withDefaultNamespace(). คืนค่า: ResourceLocation.withDefaultNamespace("block/" + string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ModelLocationUtils#decorateItemModelLocation(String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelLocationUtils.java:17 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ decorateItemModelLocation ตาม implementation ของ ModelLocationUtils
ทำงานยังไง
เรียกต่อ: withDefaultNamespace(). คืนค่า: ResourceLocation.withDefaultNamespace("item/" + string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ModelLocationUtils#getModelLocation(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelLocationUtils.java:26 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Model Location
ทำงานยังไง
เรียกต่อ: getKey(), withPrefix(). คืนค่า: resourceLocation.withPrefix("block/").
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ModelLocationUtils#getModelLocation(Block,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelLocationUtils.java:21 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Model Location
ทำงานยังไง
เรียกต่อ: getKey(), withPath(). คืนค่า: resourceLocation.withPath(string2 -> "block/" + string2 + string).
Parameters
Block blockString string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ModelLocationUtils#getModelLocation(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelLocationUtils.java:31 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Model Location
ทำงานยังไง
เรียกต่อ: getKey(), withPrefix(). คืนค่า: resourceLocation.withPrefix("item/").
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.ModelLocationUtils#getModelLocation(Item,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelLocationUtils.java:36 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Model Location
ทำงานยังไง
เรียกต่อ: getKey(), withPath(). คืนค่า: resourceLocation.withPath(string2 -> "item/" + string2 + string).
Parameters
Item itemString string
ตัวอย่างใช้งาน
ModelTemplate
- Full name:
net.minecraft.client.data.models.model.ModelTemplate - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/ModelTemplate.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.model.ModelTemplate#create(Block,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:34 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: getModelLocation(), orElse(). คืนค่า: this.create(ModelLocationUtils.getModelLocation(block, this.suffix.orElse("")), textureMapping, biConsumer).
Parameters
Block blockTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
ModelTemplate instance = ...;
Block block = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.create(block, textureMapping, biConsumer);
net.minecraft.client.data.models.model.ModelTemplate#create(Item,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:46 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: getModelLocation(), orElse(). คืนค่า: this.create(ModelLocationUtils.getModelLocation(item, this.suffix.orElse("")), textureMapping, biConsumer).
Parameters
Item itemTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
ModelTemplate instance = ...;
Item item = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.create(item, textureMapping, biConsumer);
net.minecraft.client.data.models.model.ModelTemplate#create(ResourceLocation,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:50 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง create
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: createMap(), accept(), ifPresent(), addProperty(), toString(), isEmpty(), forEach(), getId(). สร้างออบเจ็กต์: JsonObject. มีจุด return อย่างน้อย 2 จุด.
Parameters
ResourceLocation resourceLocationTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
ModelTemplate instance = ...;
ResourceLocation resourceLocation = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.create(resourceLocation, textureMapping, biConsumer);
net.minecraft.client.data.models.model.ModelTemplate#createWithOverride(Block,String,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:42 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง With Override
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(). คืนค่า: this.create(ModelLocationUtils.getModelLocation(block, string), textureMapping, biConsumer).
Parameters
Block blockString stringTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
ModelTemplate instance = ...;
Block block = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.createWithOverride(block, "value", textureMapping, biConsumer);
net.minecraft.client.data.models.model.ModelTemplate#createWithSuffix(Block,String,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:38 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง With Suffix
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), orElse(). คืนค่า: this.create(ModelLocationUtils.getModelLocation(block, string + this.suffix.orElse("")), textureMapping, biConsumer).
Parameters
Block blockString stringTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
ModelTemplate instance = ...;
Block block = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.createWithSuffix(block, "value", textureMapping, biConsumer);
net.minecraft.client.data.models.model.ModelTemplate#getDefaultModelLocation(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:30 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Default Model Location
ทำงานยังไง
เรียกต่อ: getModelLocation(), orElse(). คืนค่า: ModelLocationUtils.getModelLocation(block, this.suffix.orElse("")).
Parameters
Block block
ตัวอย่างใช้งาน
ModelTemplate instance = ...;
Block block = ...;
ResourceLocation result = instance.getDefaultModelLocation(block);
net.minecraft.client.data.models.model.ModelTemplate#ModelTemplate(Optional<ResourceLocation>,Optional<String>,TextureSlot[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/ModelTemplate.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ModelTemplate ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: model, suffix, requiredSlots. เรียกต่อ: copyOf().
Parameters
Optional<ResourceLocation> optionalOptional<String> optional2TextureSlot[] textureSlots
ตัวอย่างใช้งาน
Optional<ResourceLocation> optional = ...;
Optional<String> optional2 = ...;
TextureSlot[] textureSlots = ...;
ModelTemplate instance = new ModelTemplate(optional, optional2, textureSlots);
TexturedModel
- Full name:
net.minecraft.client.data.models.model.TexturedModel - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/TexturedModel.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.model.TexturedModel#create(Block,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:60 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: this.template.create(block, this.mapping, biConsumer).
Parameters
Block blockBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
TexturedModel instance = ...;
Block block = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.create(block, biConsumer);
net.minecraft.client.data.models.model.TexturedModel#createAllSame(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:72 - Modifiers:
public static - Return:
TexturedModel
คืออะไร
สร้าง All Same
ทำงานยังไง
เรียกต่อ: cube(). สร้างออบเจ็กต์: TexturedModel. คืนค่า: new TexturedModel(TextureMapping.cube(resourceLocation), ModelTemplates.CUBE_ALL).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TexturedModel result = TexturedModel.createAllSame(resourceLocation);
net.minecraft.client.data.models.model.TexturedModel#createDefault(Function<Block, TextureMapping>,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:68 - Modifiers:
public static - Return:
TexturedModel.Provider
คืออะไร
สร้าง Default
ทำงานยังไง
เรียกต่อ: apply(). สร้างออบเจ็กต์: TexturedModel. คืนค่า: block -> new TexturedModel(function.apply(block), modelTemplate).
Parameters
Function<Block, TextureMapping> functionModelTemplate modelTemplate
ตัวอย่างใช้งาน
Function<Block, TextureMapping> function = ...;
ModelTemplate modelTemplate = ...;
TexturedModel.Provider result = TexturedModel.createDefault(function, modelTemplate);
net.minecraft.client.data.models.model.TexturedModel#createWithSuffix(Block,String,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:64 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง With Suffix
ทำงานยังไง
คืนค่า: this.template.createWithSuffix(block, string, this.mapping, biConsumer).
Parameters
Block blockString stringBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
TexturedModel instance = ...;
Block block = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.createWithSuffix(block, "value", biConsumer);
net.minecraft.client.data.models.model.TexturedModel#getMapping()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:51 - Modifiers:
public - Return:
TextureMapping
คืออะไร
อ่านค่า Mapping
ทำงานยังไง
คืนค่า: this.mapping.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TexturedModel#getTemplate()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:47 - Modifiers:
public - Return:
ModelTemplate
คืออะไร
อ่านค่า Template
ทำงานยังไง
คืนค่า: this.template.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TexturedModel#updateTextures(Consumer<TextureMapping>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:55 - Modifiers:
public - Return:
TexturedModel
คืออะไร
อัปเดต Textures
ทำงานยังไง
เรียกต่อ: accept(). คืนค่า: this.
Parameters
Consumer<TextureMapping> consumer
ตัวอย่างใช้งาน
TexturedModel instance = ...;
Consumer<TextureMapping> consumer = ...;
TexturedModel result = instance.updateTextures(consumer);
TexturedModel$Provider
- Full name:
net.minecraft.client.data.models.model.TexturedModel$Provider - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/TexturedModel.java - Type:
interface - Modifiers:
public
net.minecraft.client.data.models.model.TexturedModel$Provider#create(Block,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:81 - Modifiers:
default - Return:
ResourceLocation
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.get(block).create(block, biConsumer).
Parameters
Block blockBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
TexturedModel.Provider instance = ...;
Block block = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.create(block, biConsumer);
net.minecraft.client.data.models.model.TexturedModel$Provider#createWithSuffix(Block,String,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:85 - Modifiers:
default - Return:
ResourceLocation
คืออะไร
สร้าง With Suffix
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.get(block).createWithSuffix(block, string, biConsumer).
Parameters
Block blockString stringBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
TexturedModel.Provider instance = ...;
Block block = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ResourceLocation result = instance.createWithSuffix(block, "value", biConsumer);
net.minecraft.client.data.models.model.TexturedModel$Provider#get(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:79 - Modifiers: ``
- Return:
TexturedModel
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Block block
ตัวอย่างใช้งาน
TexturedModel.Provider instance = ...;
Block block = ...;
TexturedModel result = instance.get(block);
net.minecraft.client.data.models.model.TexturedModel$Provider#updateTexture(Consumer<TextureMapping>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TexturedModel.java:89 - Modifiers:
default - Return:
TexturedModel.Provider
คืออะไร
อัปเดต Texture
ทำงานยังไง
เรียกต่อ: get(), updateTextures(). คืนค่า: block -> this.get(block).updateTextures(consumer).
Parameters
Consumer<TextureMapping> consumer
ตัวอย่างใช้งาน
TexturedModel.Provider instance = ...;
Consumer<TextureMapping> consumer = ...;
TexturedModel.Provider result = instance.updateTexture(consumer);
TextureMapping
- Full name:
net.minecraft.client.data.models.model.TextureMapping - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/TextureMapping.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.model.TextureMapping#attachedStem(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:136 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ attachedStem ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.STEM, getBlockTexture(block)).put(TextureSlot.UPPER_STEM, getBlockTexture(block2)).
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
Block block = ...;
Block block2 = ...;
TextureMapping result = TextureMapping.attachedStem(block, block2);
net.minecraft.client.data.models.model.TextureMapping#campfire(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:343 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ campfire ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LIT_LOG, getBlockTexture(block, "_log_lit")).put(TextureSlot.FIRE, getBlockTexture(block, "_fire")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#candleCake(Block,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:347 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ candleCake ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block blockboolean bl
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#cauldron(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:356 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cauldron ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.cauldron(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#column(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:160 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ column ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.SIDE, getBlockTexture(block, "_side")).put(TextureSlot.END, getBlockTexture(block, "_top")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#column(ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:182 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ column ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.SIDE, resourceLocation).put(TextureSlot.END, resourceLocation2).
Parameters
ResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
TextureMapping result = TextureMapping.column(resourceLocation, resourceLocation2);
net.minecraft.client.data.models.model.TextureMapping#columnWithWall(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:213 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ columnWithWall ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: getBlockTexture(), put(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#commandBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:277 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ commandBlock ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#copyAndUpdate(TextureSlot,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:58 - Modifiers:
public - Return:
TextureMapping
คืออะไร
คัดลอก And Update
ทำงานยังไง
เรียกต่อ: putAll(), addAll(), put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: textureMapping.
Parameters
TextureSlot textureSlotResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureMapping instance = ...;
TextureSlot textureSlot = ...;
ResourceLocation resourceLocation = ...;
TextureMapping result = instance.copyAndUpdate(textureSlot, resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#copyForced(TextureSlot,TextureSlot)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:41 - Modifiers:
public - Return:
TextureMapping
คืออะไร
คัดลอก Forced
ทำงานยังไง
เรียกต่อ: put(), get(), add(). คืนค่า: this.
Parameters
TextureSlot textureSlotTextureSlot textureSlot2
ตัวอย่างใช้งาน
TextureMapping instance = ...;
TextureSlot textureSlot = ...;
TextureSlot textureSlot2 = ...;
TextureMapping result = instance.copyForced(textureSlot, textureSlot2);
net.minecraft.client.data.models.model.TextureMapping#copySlot(TextureSlot,TextureSlot)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:36 - Modifiers:
public - Return:
TextureMapping
คืออะไร
คัดลอก Slot
ทำงานยังไง
เรียกต่อ: put(), get(). คืนค่า: this.
Parameters
TextureSlot textureSlotTextureSlot textureSlot2
ตัวอย่างใช้งาน
TextureMapping instance = ...;
TextureSlot textureSlot = ...;
TextureSlot textureSlot2 = ...;
TextureMapping result = instance.copySlot(textureSlot, textureSlot2);
net.minecraft.client.data.models.model.TextureMapping#craftingTable(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:310 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ craftingTable ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
Block block = ...;
Block block2 = ...;
TextureMapping result = TextureMapping.craftingTable(block, block2);
net.minecraft.client.data.models.model.TextureMapping#crop(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:148 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ crop ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(). คืนค่า: singleSlot(TextureSlot.CROP, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.crop(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#cross(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:84 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cross ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.CROSS, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#cross(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:96 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cross ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(). คืนค่า: singleSlot(TextureSlot.CROSS, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.cross(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#crossEmissive(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:92 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ crossEmissive ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.CROSS, getBlockTexture(block)).put(TextureSlot.CROSS_EMISSIVE, getBlockTexture(block, "_emissive")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#cube(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:66 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cube ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: getBlockTexture(). คืนค่า: cube(resourceLocation).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#cube(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:80 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cube ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.ALL, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.cube(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#cubeBottomTop(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:197 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cubeBottomTop ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#cubeBottomTopWithWall(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:204 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cubeBottomTopWithWall ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: getBlockTexture(), put(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#cubeTop(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:164 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ cubeTop ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.SIDE, getBlockTexture(block, "_side")).put(TextureSlot.TOP, getBlockTexture(block, "_top")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#customParticle(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:193 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ customParticle ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TEXTURE, getBlockTexture(block)).put(TextureSlot.PARTICLE, getBlockTexture(block, "_particle")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#defaultTexture(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:71 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ defaultTexture ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: getBlockTexture(). คืนค่า: defaultTexture(resourceLocation).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#defaultTexture(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:76 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ defaultTexture ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TEXTURE, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.defaultTexture(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#door(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:226 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ door ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TOP, getBlockTexture(block, "_top")).put(TextureSlot.BOTTOM, getBlockTexture(block, "_bottom")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#door(ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:222 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ door ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TOP, resourceLocation).put(TextureSlot.BOTTOM, resourceLocation2).
Parameters
ResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
TextureMapping result = TextureMapping.door(resourceLocation, resourceLocation2);
net.minecraft.client.data.models.model.TextureMapping#fan(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:144 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ fan ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.FAN, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#fence(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:186 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ fence ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#fire0(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:238 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ fire0 ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.FIRE, getBlockTexture(block, "_0")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#fire1(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:242 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ fire1 ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.FIRE, getBlockTexture(block, "_1")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#fletchingTable(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:321 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ fletchingTable ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
Block block = ...;
Block block2 = ...;
TextureMapping result = TextureMapping.fletchingTable(block, block2);
net.minecraft.client.data.models.model.TextureMapping#flowerbed(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:124 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ flowerbed ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.FLOWERBED, getBlockTexture(block)).put(TextureSlot.STEM, getBlockTexture(block, "_stem")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#get(TextureSlot)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:47 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า get
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getParent(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: resourceLocation.
Parameters
TextureSlot textureSlot
ตัวอย่างใช้งาน
TextureMapping instance = ...;
TextureSlot textureSlot = ...;
ResourceLocation result = instance.get(textureSlot);
net.minecraft.client.data.models.model.TextureMapping#getBlockTexture(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:396 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Block Texture
ทำงานยังไง
เรียกต่อ: getKey(), withPrefix(). คืนค่า: resourceLocation.withPrefix("block/").
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#getBlockTexture(Block,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:401 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Block Texture
ทำงานยังไง
เรียกต่อ: getKey(), withPath(). คืนค่า: resourceLocation.withPath(string2 -> "block/" + string2 + string).
Parameters
Block blockString string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#getForced()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:32 - Modifiers:
public - Return:
Stream<TextureSlot>
คืออะไร
อ่านค่า Forced
ทำงานยังไง
เรียกต่อ: stream(). คืนค่า: this.forcedSlots.stream().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#getItemTexture(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:406 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Item Texture
ทำงานยังไง
เรียกต่อ: getKey(), withPrefix(). คืนค่า: resourceLocation.withPrefix("item/").
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#getItemTexture(Item,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:411 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Item Texture
ทำงานยังไง
เรียกต่อ: getKey(), withPath(). คืนค่า: resourceLocation.withPath(string2 -> "item/" + string2 + string).
Parameters
Item itemString string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#lantern(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:246 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ lantern ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LANTERN, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#layer0(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:380 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ layer0 ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LAYER0, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#layer0(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:376 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ layer0 ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getItemTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LAYER0, getItemTexture(item)).
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#layer0(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:384 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ layer0 ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LAYER0, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.layer0(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#layered(ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:388 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ layered ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LAYER0, resourceLocation).put(TextureSlot.LAYER1, resourceLocation2).
Parameters
ResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
TextureMapping result = TextureMapping.layered(resourceLocation, resourceLocation2);
net.minecraft.client.data.models.model.TextureMapping#layered(ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:392 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ layered ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.LAYER0, resourceLocation).put(TextureSlot.LAYER1, resourceLocation2).put(TextureSlot.LAYER2, resourceLocation3).
Parameters
ResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
TextureMapping result = TextureMapping.layered(resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.model.TextureMapping#logColumn(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:175 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ logColumn ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#orientableCube(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:284 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ orientableCube ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#orientableCubeOnlyTop(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:292 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ orientableCubeOnlyTop ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#orientableCubeSameEnds(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:299 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ orientableCubeSameEnds ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#pane(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:152 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ pane ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.PANE, getBlockTexture(block)).put(TextureSlot.EDGE, getBlockTexture(block2, "_top")).
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#particle(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:230 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ particle ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.PARTICLE, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#particle(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:234 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ particle ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.PARTICLE, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.particle(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#particleFromItem(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:273 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ particleFromItem ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getItemTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.PARTICLE, getItemTexture(item)).
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#pattern(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:140 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ pattern ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.PATTERN, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#plant(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:100 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ plant ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.PLANT, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#plant(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:108 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ plant ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(). คืนค่า: singleSlot(TextureSlot.PLANT, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.plant(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#plantEmissive(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:104 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ plantEmissive ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.PLANT, getBlockTexture(block)).put(TextureSlot.CROSS_EMISSIVE, getBlockTexture(block, "_emissive")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#pottedAzalea(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:168 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ pottedAzalea ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#put(TextureSlot,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:21 - Modifiers:
public - Return:
TextureMapping
คืออะไร
ดำเนินการ put ตาม implementation ของ TextureMapping
ทำงานยังไง
คืนค่า: this.
Parameters
TextureSlot textureSlotResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureMapping instance = ...;
TextureSlot textureSlot = ...;
ResourceLocation resourceLocation = ...;
TextureMapping result = instance.put(textureSlot, resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#putForced(TextureSlot,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:26 - Modifiers:
public - Return:
TextureMapping
คืออะไร
ดำเนินการ putForced ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), add(). คืนค่า: this.
Parameters
TextureSlot textureSlotResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureMapping instance = ...;
TextureSlot textureSlot = ...;
ResourceLocation resourceLocation = ...;
TextureMapping result = instance.putForced(textureSlot, resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#rail(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:112 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ rail ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.RAIL, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#rail(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:116 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ rail ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(). คืนค่า: singleSlot(TextureSlot.RAIL, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.rail(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#sculkShrieker(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:366 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ sculkShrieker ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#side(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:88 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ side ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.SIDE, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#singleSlot(TextureSlot,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:156 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ singleSlot ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(textureSlot, resourceLocation).
Parameters
TextureSlot textureSlotResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureSlot textureSlot = ...;
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.singleSlot(textureSlot, resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#snifferEgg(String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:332 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ snifferEgg ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#stem(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:132 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ stem ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.STEM, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#top(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:306 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ top ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TOP, getBlockTexture(block, "_top")).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#torch(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:250 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ torch ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TORCH, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#torch(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:254 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ torch ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: TextureMapping. คืนค่า: new TextureMapping().put(TextureSlot.TORCH, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.torch(resourceLocation);
net.minecraft.client.data.models.model.TextureMapping#trialSpawner(Block,String,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:258 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ trialSpawner ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block blockString stringString string2
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#vault(Block,String,String,String,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:265 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ vault ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block blockString stringString string2String string3String string4
ตัวอย่างใช้งาน
Block block = ...;
TextureMapping result = TextureMapping.vault(block, "value", "value", "value", "value");
net.minecraft.client.data.models.model.TextureMapping#wool(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:120 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ wool ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(), getBlockTexture(). คืนค่า: singleSlot(TextureSlot.WOOL, getBlockTexture(block)).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureMapping#wool(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureMapping.java:128 - Modifiers:
public static - Return:
TextureMapping
คืออะไร
ดำเนินการ wool ตาม implementation ของ TextureMapping
ทำงานยังไง
เรียกต่อ: singleSlot(). คืนค่า: singleSlot(TextureSlot.WOOL, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureMapping result = TextureMapping.wool(resourceLocation);
TextureSlot
- Full name:
net.minecraft.client.data.models.model.TextureSlot - Package:
net.minecraft.client.data.models.model - Source:
clientOnly—net/minecraft/client/data/models/model/TextureSlot.java - Type:
class - Modifiers:
public final
net.minecraft.client.data.models.model.TextureSlot#create(String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureSlot.java:56 - Modifiers:
public static - Return:
TextureSlot
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: TextureSlot. คืนค่า: new TextureSlot(string, null).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureSlot#create(String,TextureSlot)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureSlot.java:60 - Modifiers:
public static - Return:
TextureSlot
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: TextureSlot. คืนค่า: new TextureSlot(string, textureSlot).
Parameters
String stringTextureSlot textureSlot
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureSlot#getId()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureSlot.java:69 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureSlot#getParent()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureSlot.java:73 - Modifiers:
public - Return:
TextureSlot
คืออะไร
อ่านค่า Parent
ทำงานยังไง
คืนค่า: this.parent.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.model.TextureSlot#toString()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/model/TextureSlot.java:78 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ TextureSlot
ทำงานยังไง
คืนค่า: "#" + this.id.
Parameters
- ไม่มี