Package net.minecraft.client.data.models
Part 1/1
BlockModelGenerators
- Full name:
net.minecraft.client.data.models.BlockModelGenerators - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/BlockModelGenerators.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.BlockModelGenerators#addBookSlotModel(MultiPartGenerator,Condition.TerminalCondition,VariantProperties.Rotation,BooleanProperty,ModelTemplate,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4280 - Modifiers:
public final - Return:
void
คืออะไร
เพิ่ม Book Slot Model
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(), BookSlotModelCacheKey(), computeIfAbsent(), createWithSuffix(), with(), and(), condition(). สร้างออบเจ็กต์: TextureMapping, BlockModelGenerators.BookSlotModelCacheKey.
Parameters
MultiPartGenerator multiPartGeneratorCondition.TerminalCondition terminalConditionVariantProperties.Rotation rotationBooleanProperty booleanPropertyModelTemplate modelTemplateboolean bl
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
MultiPartGenerator multiPartGenerator = ...;
Condition.TerminalCondition terminalCondition = ...;
VariantProperties.Rotation rotation = ...;
BooleanProperty booleanProperty = ...;
ModelTemplate modelTemplate = ...;
instance.addBookSlotModel(multiPartGenerator, terminalCondition, rotation, booleanProperty, modelTemplate, true);
net.minecraft.client.data.models.BlockModelGenerators#addSlotStateAndRotationVariants(MultiPartGenerator,Condition.TerminalCondition,VariantProperties.Rotation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4261 - Modifiers:
public final - Return:
void
คืออะไร
เพิ่ม Slot State And Rotation Variants
ทำงานยังไง
เรียกต่อ: of(), forEach(), getFirst(), getSecond(), addBookSlotModel().
Parameters
MultiPartGenerator multiPartGeneratorCondition.TerminalCondition terminalConditionVariantProperties.Rotation rotation
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
MultiPartGenerator multiPartGenerator = ...;
Condition.TerminalCondition terminalCondition = ...;
VariantProperties.Rotation rotation = ...;
instance.addSlotStateAndRotationVariants(multiPartGenerator, terminalCondition, rotation);
net.minecraft.client.data.models.BlockModelGenerators#applyRotation(FrontAndTop,Variant)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4371 - Modifiers:
public final - Return:
Variant
คืออะไร
นำไปใช้ Rotation
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: with(). สร้างออบเจ็กต์: UnsupportedOperationException. มีจุด return อย่างน้อย 12 จุด.
Parameters
FrontAndTop frontAndTopVariant variant
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
FrontAndTop frontAndTop = ...;
Variant variant = ...;
Variant result = instance.applyRotation(frontAndTop, variant);
net.minecraft.client.data.models.BlockModelGenerators#BlockModelGenerators(Consumer<BlockStateGenerator>,ItemModelOutput,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:225 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockModelGenerators ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: blockStateOutput, itemModelOutput, modelOutput.
Parameters
Consumer<BlockStateGenerator> consumerItemModelOutput itemModelOutputBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
Consumer<BlockStateGenerator> consumer = ...;
ItemModelOutput itemModelOutput = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
BlockModelGenerators instance = new BlockModelGenerators(consumer, itemModelOutput, biConsumer);
net.minecraft.client.data.models.BlockModelGenerators#configureDoorHalf(PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean>,DoubleBlockHalf,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:446 - Modifiers:
public static - Return:
PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean>
คืออะไร
ดำเนินการ configureDoorHalf ตาม implementation ของ BlockModelGenerators
ทำงานยังไง
เรียกต่อ: select(), variant(), with().
Parameters
PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> c4DoubleBlockHalf doubleBlockHalfResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3ResourceLocation resourceLocation4
ตัวอย่างใช้งาน
PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> c4 = ...;
DoubleBlockHalf doubleBlockHalf = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation resourceLocation4 = ...;
PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> result = BlockModelGenerators.configureDoorHalf(c4, doubleBlockHalf, resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4);
net.minecraft.client.data.models.BlockModelGenerators#copyCopperBulbModel(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2889 - Modifiers:
public final - Return:
void
คืออะไร
คัดลอก Copper Bulb Model
ทำงานยังไง
เรียกต่อ: getModelLocation(), copy(), asItem(), accept(), createCopperBulb().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.copyCopperBulbModel(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#copyDoorModel(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1405 - Modifiers:
public final - Return:
void
คืออะไร
คัดลอก Door Model
ทำงานยังไง
เรียกต่อ: getDefaultModelLocation(), copy(), asItem(), accept(), createDoor().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.copyDoorModel(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#copyModel(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3229 - Modifiers:
public final - Return:
void
คืออะไร
คัดลอก Model
ทำงานยังไง
เรียกต่อ: getModelLocation(), accept(), multiVariant(), variant(), with(), copy(), asItem().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.copyModel(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#copyTrapdoorModel(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1449 - Modifiers:
public final - Return:
void
คืออะไร
คัดลอก Trapdoor Model
ทำงานยังไง
เรียกต่อ: getDefaultModelLocation(), copy(), asItem(), accept(), createTrapdoor().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.copyTrapdoorModel(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createActiveRail(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1703 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Active Rail
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: createSuffixedVariant(), properties(), generate(), variant(), with(), registerSimpleFlatItemModel(), accept(), multiVariant(). สร้างออบเจ็กต์: UnsupportedOperationException. มีจุด return อย่างน้อย 3 จุด.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createAirLikeBlock(Block,Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1741 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Air Like Block
ทำงานยังไง
เรียกต่อ: create(), particleFromItem(), accept(), createSimpleBlock().
Parameters
Block blockItem item
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Item item = ...;
instance.createAirLikeBlock(block, item);
net.minecraft.client.data.models.BlockModelGenerators#createAirLikeBlock(Block,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1746 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Air Like Block
ทำงานยังไง
เรียกต่อ: create(), particle(), accept(), createSimpleBlock().
Parameters
Block blockResourceLocation resourceLocation
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
instance.createAirLikeBlock(block, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createAmethystCluster(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2898 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Amethyst Cluster
ทำงานยังไง
เรียกต่อ: accept(), multiVariant(), variant(), with(), create(), cross(), createColumnWithFacing().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createAnvil(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1913 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Anvil
ทำงานยังไง
เรียกต่อ: create(), accept(), createSimpleBlock(), with(), createHorizontalFacingDispatchAlt().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createAxisAlignedPillarBlock(Block,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1239 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Axis Aligned Pillar Block
ทำงานยังไง
เรียกต่อ: multiVariant(), variant(), with(), createRotatedPillar(). คืนค่า: MultiVariantGenerator.multiVariant(block, Variant.variant().with(VariantProperties.MODEL, resourceLocation)).with(createRotatedPillar()).
Parameters
Block blockResourceLocation resourceLocation
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
BlockStateGenerator result = BlockModelGenerators.createAxisAlignedPillarBlock(block, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createAxisAlignedPillarBlock(Block,TexturedModel.Provider)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1247 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Axis Aligned Pillar Block
ทำงานยังไง
เรียกต่อ: create(), accept().
Parameters
Block blockTexturedModel.Provider provider
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TexturedModel.Provider provider = ...;
instance.createAxisAlignedPillarBlock(block, provider);
net.minecraft.client.data.models.BlockModelGenerators#createAxisAlignedPillarBlockCustomModel(Block,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1243 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Axis Aligned Pillar Block Custom Model
ทำงานยังไง
เรียกต่อ: accept(), createAxisAlignedPillarBlock().
Parameters
Block blockResourceLocation resourceLocation
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
instance.createAxisAlignedPillarBlockCustomModel(block, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createAzalea(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2192 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Azalea
ทำงานยังไง
เรียกต่อ: create(), cubeTop(), accept(), createSimpleBlock().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createBambooModels(int)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1918 - Modifiers:
public final - Return:
List<Variant>
คืออะไร
สร้าง Bamboo Models
ทำงานยังไง
เรียกต่อ: range(), mapToObj(), variant(), with(), getModelLocation(), collect(), toList().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createBanner(Block,Block,DyeColor)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4451 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Banner
ทำงานยังไง
เรียกต่อ: decorateBlockModelLocation(), decorateItemModelLocation(), accept(), createSimpleBlock(), asItem(), specialModel(), Unbaked(). สร้างออบเจ็กต์: BannerSpecialRenderer.Unbaked.
Parameters
Block blockBlock block2DyeColor dyeColor
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
DyeColor dyeColor = ...;
instance.createBanner(block, block2, dyeColor);
net.minecraft.client.data.models.BlockModelGenerators#createBed(Block,Block,DyeColor)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4498 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Bed
ทำงานยังไง
เรียกต่อ: decorateBlockModelLocation(), accept(), createSimpleBlock(), asItem(), create(), getModelLocation(), particle(), specialModel(). สร้างออบเจ็กต์: BedSpecialRenderer.Unbaked.
Parameters
Block blockBlock block2DyeColor dyeColor
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
DyeColor dyeColor = ...;
instance.createBed(block, block2, dyeColor);
net.minecraft.client.data.models.BlockModelGenerators#createBeeNest(Block,Function<Block, TextureMapping>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1996 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Bee Nest
ทำงานยังไง
เรียกต่อ: apply(), copyForced(), copyAndUpdate(), getBlockTexture(), createWithSuffix(), accept(), asItem(), selectBlockItemProperty().
Parameters
Block blockFunction<Block, TextureMapping> function
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Function<Block, TextureMapping> function = ...;
instance.createBeeNest(block, function);
net.minecraft.client.data.models.BlockModelGenerators#createBooleanModelDispatch(BooleanProperty,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:346 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Boolean Model Dispatch
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
BooleanProperty booleanPropertyResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
BooleanProperty booleanProperty = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
PropertyDispatch result = BlockModelGenerators.createBooleanModelDispatch(booleanProperty, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createBrushableBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:365 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Brushable Block
ทำงานยังไง
เรียกต่อ: accept(), multiVariant(), with(), property(), generate(), getBlockTexture(), variant(), createWithSuffix(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createButton(Block,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:387 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Button
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), property(), select(), variant(), properties().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
BlockStateGenerator result = BlockModelGenerators.createButton(block, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createCampfires(Block[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2177 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Campfires
ทำงานยังไง
มีการวนลูป. เรียกต่อ: decorateBlockModelLocation(), create(), campfire(), registerSimpleFlatItemModel(), asItem(), accept(), multiVariant(), with().
Parameters
Block[] blocks
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createCandleAndCandleCake(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5181 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Candle And Candle Cake
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), asItem(), cube(), getBlockTexture(), createWithSuffix(), accept(), multiVariant(), with().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createCandleAndCandleCake(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createChest(Block,Block,ResourceLocation,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4479 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Chest
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: createParticleOnlyBlock(), asItem(), create(), particle(), specialModel(), Unbaked(), accept(), isXmas(). สร้างออบเจ็กต์: ChestSpecialRenderer.Unbaked.
Parameters
Block blockBlock block2ResourceLocation resourceLocationboolean bl
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
ResourceLocation resourceLocation = ...;
instance.createChest(block, block2, resourceLocation, true);
net.minecraft.client.data.models.BlockModelGenerators#createColoredBlockWithRandomRotations(TexturedModel.Provider,Block[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1845 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Colored Block With Random Rotations
ทำงานยังไง
มีการวนลูป. เรียกต่อ: create(), accept(), createRotatedVariant().
Parameters
TexturedModel.Provider providerBlock[] blocks
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
TexturedModel.Provider provider = ...;
Block[] blocks = ...;
instance.createColoredBlockWithRandomRotations(provider, blocks);
net.minecraft.client.data.models.BlockModelGenerators#createColoredBlockWithStateRotations(TexturedModel.Provider,Block[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1852 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Colored Block With State Rotations
ทำงานยังไง
มีการวนลูป. เรียกต่อ: create(), accept(), multiVariant(), variant(), with(), createHorizontalFacingDispatchAlt().
Parameters
TexturedModel.Provider providerBlock[] blocks
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
TexturedModel.Provider provider = ...;
Block[] blocks = ...;
instance.createColoredBlockWithStateRotations(provider, blocks);
net.minecraft.client.data.models.BlockModelGenerators#createColumnWithFacing()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1942 - Modifiers:
public final - Return:
PropertyDispatch
คืออะไร
สร้าง Column With Facing
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createCommandBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1899 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Command Block
ทำงานยังไง
เรียกต่อ: commandBlock(), create(), createSuffixedVariant(), copyAndUpdate(), accept(), multiVariant(), with(), createBooleanModelDispatch().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createCopperBulb(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2867 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Copper Bulb
ทำงานยังไง
เรียกต่อ: create(), cube(), createSuffixedVariant(), accept().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createCopperBulb(Block,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2875 - Modifiers:
public final - Return:
BlockStateGenerator
คืออะไร
สร้าง Copper Bulb
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), properties(), generate(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3ResourceLocation resourceLocation4
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation resourceLocation4 = ...;
BlockStateGenerator result = instance.createCopperBulb(block, resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4);
net.minecraft.client.data.models.BlockModelGenerators#createCoral(Block,Block,Block,Block,Block,Block,Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1594 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Coral
ทำงานยังไง
เรียกต่อ: createCrossBlockWithDefaultItem(), createTrivialCube(), createCoralFans().
Parameters
Block blockBlock block2Block block3Block block4Block block5Block block6Block block7Block block8
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
Block block3 = ...;
Block block4 = ...;
Block block5 = ...;
Block block6 = ...;
Block block7 = ...;
Block block8 = ...;
instance.createCoral(block, block2, block3, block4, block5, block6, block7, block8);
net.minecraft.client.data.models.BlockModelGenerators#createCoralFans(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1534 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Coral Fans
ทำงานยังไง
เรียกต่อ: get(), create(), accept(), createSimpleBlock(), getMapping(), multiVariant(), variant(), with().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createCoralFans(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createCraftingTableLike(Block,Block,BiFunction<Block, Block, TextureMapping>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2474 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Crafting Table Like
ทำงานยังไง
เรียกต่อ: apply(), accept(), createSimpleBlock(), create().
Parameters
Block blockBlock block2BiFunction<Block, Block, TextureMapping> biFunction
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
BiFunction<Block, Block, TextureMapping> biFunction = ...;
instance.createCraftingTableLike(block, block2, biFunction);
net.minecraft.client.data.models.BlockModelGenerators#createCreakingHeart(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1280 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Creaking Heart
ทำงานยังไง
เรียกต่อ: updateTexture(), put(), getBlockTexture(), createWithSuffix(), create(), apply(), accept(), multiVariant().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createCropBlock(Block,Property<Integer>,int[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2016 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Crop Block
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPossibleValues(), size(), property(), generate(), computeIfAbsent(), createSuffixedVariant(), variant(), with(). สร้างออบเจ็กต์: IllegalArgumentException, Int2ObjectOpenHashMap<>. คืนค่า: Variant.variant().with(VariantProperties.MODEL, resourceLocation).
Parameters
Block blockProperty<Integer> propertyint[] is
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Property<Integer> property = ...;
int[] is = ...;
instance.createCropBlock(block, property, is);
net.minecraft.client.data.models.BlockModelGenerators#createCrossBlock(Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1497 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Cross Block
ทำงานยังไง
เรียกต่อ: getTextureMapping().
Parameters
Block blockBlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createCrossBlock(block, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createCrossBlock(Block,BlockModelGenerators.PlantType,Property<Integer>,int[])
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1507 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Cross Block
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPossibleValues(), size(), property(), generate(), cross(), getBlockTexture(), getCross(), createWithSuffix(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: Variant.variant().with(VariantProperties.MODEL, resourceLocation).
Parameters
Block blockBlockModelGenerators.PlantType plantTypeProperty<Integer> propertyint[] is
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
Property<Integer> property = ...;
int[] is = ...;
instance.createCrossBlock(block, plantType, property, is);
net.minecraft.client.data.models.BlockModelGenerators#createCrossBlock(Block,BlockModelGenerators.PlantType,TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1502 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Cross Block
ทำงานยังไง
เรียกต่อ: getCross(), create(), accept(), createSimpleBlock().
Parameters
Block blockBlockModelGenerators.PlantType plantTypeTextureMapping textureMapping
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
TextureMapping textureMapping = ...;
instance.createCrossBlock(block, plantType, textureMapping);
net.minecraft.client.data.models.BlockModelGenerators#createCrossBlockWithDefaultItem(Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1487 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Cross Block With Default Item
ทำงานยังไง
เรียกต่อ: registerSimpleItemModel(), asItem(), createItemModel(), createCrossBlock().
Parameters
Block blockBlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createCrossBlockWithDefaultItem(block, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createCrossBlockWithDefaultItem(Block,BlockModelGenerators.PlantType,TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1492 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Cross Block With Default Item
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), createCrossBlock().
Parameters
Block blockBlockModelGenerators.PlantType plantTypeTextureMapping textureMapping
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
TextureMapping textureMapping = ...;
instance.createCrossBlockWithDefaultItem(block, plantType, textureMapping);
net.minecraft.client.data.models.BlockModelGenerators#createCustomFence(Block,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:577 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Custom Fence
ทำงานยังไง
เรียกต่อ: multiPart(), with(), variant(), condition(), term().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3ResourceLocation resourceLocation4ResourceLocation resourceLocation5
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation resourceLocation4 = ...;
ResourceLocation resourceLocation5 = ...;
BlockStateGenerator result = BlockModelGenerators.createCustomFence(block, resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4, resourceLocation5);
net.minecraft.client.data.models.BlockModelGenerators#createDispenserBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2628 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Dispenser Block
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(), create(), accept(), multiVariant(), with(), property(), select(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createDoor(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1378 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Door
ทำงานยังไง
เรียกต่อ: door(), create(), registerSimpleFlatItemModel(), asItem(), accept().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createDoor(Block,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:544 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Door
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), configureDoorHalf(), properties().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3ResourceLocation resourceLocation4ResourceLocation resourceLocation5ResourceLocation resourceLocation6ResourceLocation resourceLocation7ResourceLocation resourceLocation8
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation resourceLocation4 = ...;
ResourceLocation resourceLocation5 = ...;
ResourceLocation resourceLocation6 = ...;
ResourceLocation resourceLocation7 = ...;
ResourceLocation resourceLocation8 = ...;
BlockStateGenerator result = BlockModelGenerators.createDoor(block, resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4, resourceLocation5, resourceLocation6, resourceLocation7, resourceLocation8);
net.minecraft.client.data.models.BlockModelGenerators#createDoubleBlock(Block,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1650 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Double Block
ทำงานยังไง
เรียกต่อ: accept(), multiVariant(), with(), property(), select(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
instance.createDoubleBlock(block, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createDoublePlant(Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1603 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Double Plant
ทำงานยังไง
เรียกต่อ: createSuffixedVariant(), getCross(), createDoubleBlock().
Parameters
Block blockBlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createDoublePlant(block, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createDoublePlantWithDefaultItem(Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1609 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Double Plant With Default Item
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), createDoublePlant().
Parameters
Block blockBlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createDoublePlantWithDefaultItem(block, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createEmptyOrFullDispatch(Property<T>,T,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1985 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Empty Or Full Dispatch
ทำงานยังไง
เรียกต่อ: variant(), with(), property(), generate(), compareTo(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Property<T> propertyT comparableResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
Property<T> property = ...;
T comparable = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
PropertyDispatch result = BlockModelGenerators.createEmptyOrFullDispatch(property, comparable, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createFacingDispatch()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:313 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Facing Dispatch
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createFence(Block,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:605 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Fence
ทำงานยังไง
เรียกต่อ: multiPart(), with(), variant(), condition(), term().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
BlockStateGenerator result = BlockModelGenerators.createFence(block, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createFenceGate(Block,ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:692 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Fence Gate
ทำงานยังไง
เรียกต่อ: multiVariant(), variant(), with(), createHorizontalFacingDispatchAlt(), properties(), select().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3ResourceLocation resourceLocation4boolean bl
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation resourceLocation4 = ...;
BlockStateGenerator result = BlockModelGenerators.createFenceGate(block, resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4, true);
net.minecraft.client.data.models.BlockModelGenerators#createFlatItemModel(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:243 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), layer0(). คืนค่า: ModelTemplates.FLAT_ITEM.create(ModelLocationUtils.getModelLocation(item), TextureMapping.layer0(item), this.modelOutput).
Parameters
Item item
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Item item = ...;
ResourceLocation result = instance.createFlatItemModel(item);
net.minecraft.client.data.models.BlockModelGenerators#createFlatItemModelWithBlockTexture(Item,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:247 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model With Block Texture
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), layer0(). คืนค่า: ModelTemplates.FLAT_ITEM.create(ModelLocationUtils.getModelLocation(item), TextureMapping.layer0(block), this.modelOutput).
Parameters
Item itemBlock block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Item item = ...;
Block block = ...;
ResourceLocation result = instance.createFlatItemModelWithBlockTexture(item, block);
net.minecraft.client.data.models.BlockModelGenerators#createFlatItemModelWithBlockTexture(Item,Block,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:251 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model With Block Texture
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), layer0(), getBlockTexture().
Parameters
Item itemBlock blockString string
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Item item = ...;
Block block = ...;
ResourceLocation result = instance.createFlatItemModelWithBlockTexture(item, block, "value");
net.minecraft.client.data.models.BlockModelGenerators#createFlatItemModelWithBlockTextureAndOverlay(Item,Block,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:256 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model With Block Texture And Overlay
ทำงานยังไง
เรียกต่อ: getBlockTexture(), create(), getModelLocation(), layered().
Parameters
Item itemBlock blockString string
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Item item = ...;
Block block = ...;
ResourceLocation result = instance.createFlatItemModelWithBlockTextureAndOverlay(item, block, "value");
net.minecraft.client.data.models.BlockModelGenerators#createFloorFireModels(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3012 - Modifiers:
public final - Return:
List<ResourceLocation>
คืออะไร
สร้าง Floor Fire Models
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), fire0(), fire1(), of(). คืนค่า: ImmutableList.of(resourceLocation, resourceLocation2).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
List<ResourceLocation> result = instance.createFloorFireModels(block);
net.minecraft.client.data.models.BlockModelGenerators#createFlowerBed(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1769 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Flower Bed
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), asItem(), create(), accept(), multiPart(), with(), condition(), term().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createFullAndCarpetBlocks(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1763 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Full And Carpet Blocks
ทำงานยังไง
เรียกต่อ: createTrivialCube(), get(), create(), accept(), createSimpleBlock().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createFullAndCarpetBlocks(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createFurnace(Block,TexturedModel.Provider)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2163 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Furnace
ทำงานยังไง
เรียกต่อ: create(), getBlockTexture(), get(), updateTextures(), put(), createWithSuffix(), accept(), multiVariant().
Parameters
Block blockTexturedModel.Provider provider
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TexturedModel.Provider provider = ...;
instance.createFurnace(block, provider);
net.minecraft.client.data.models.BlockModelGenerators#createGenericCube(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2479 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Generic Cube
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(), accept(), createSimpleBlock(), create(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createGlassBlocks(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1862 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Glass Blocks
ทำงานยังไง
เรียกต่อ: createTrivialCube(), pane(), create(), asItem(), registerSimpleItemModel(), createFlatItemModelWithBlockTexture(), accept(), multiPart().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createGlassBlocks(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createGrassLikeBlock(Block,ResourceLocation,Variant)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3172 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Grass Like Block
ทำงานยังไง
เรียกต่อ: asList(), createRotatedVariants(), accept(), multiVariant(), with(), property(), select().
Parameters
Block blockResourceLocation resourceLocationVariant variant
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
Variant variant = ...;
instance.createGrassLikeBlock(block, resourceLocation, variant);
net.minecraft.client.data.models.BlockModelGenerators#createGrowingPlant(Block,Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4320 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Growing Plant
ทำงานยังไง
เรียกต่อ: createCrossBlock().
Parameters
Block blockBlock block2BlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createGrowingPlant(block, block2, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createHangingMoss(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4200 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Hanging Moss
ทำงานยังไง
เรียกต่อ: property(), generate(), cross(), getBlockTexture(), getCross(), createWithSuffix(), variant(), with(). คืนค่า: Variant.variant().with(VariantProperties.MODEL, resourceLocation).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createHangingSign(Block,Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1371 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Hanging Sign
ทำงานยังไง
เรียกต่อ: createParticleOnlyBlockModel(), accept(), createSimpleBlock(), registerSimpleFlatItemModel(), asItem().
Parameters
Block blockBlock block2Block block3
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
Block block3 = ...;
instance.createHangingSign(block, block2, block3);
net.minecraft.client.data.models.BlockModelGenerators#createHead(Block,Block,Type,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4433 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Head
ทำงานยังไง
เรียกต่อ: decorateBlockModelLocation(), accept(), createSimpleBlock(), asItem(), specialModel(), Unbaked(). สร้างออบเจ็กต์: SkullSpecialRenderer.Unbaked.
Parameters
Block blockBlock block2Type typeResourceLocation resourceLocation
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
Type type = ...;
ResourceLocation resourceLocation = ...;
instance.createHead(block, block2, type, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createHorizontalFacingDispatch()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:289 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Horizontal Facing Dispatch
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createHorizontalFacingDispatchAlt()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:297 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Horizontal Facing Dispatch Alt
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createHorizontallyRotatedBlock(Block,TexturedModel.Provider)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1252 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Horizontally Rotated Block
ทำงานยังไง
เรียกต่อ: create(), accept(), multiVariant(), variant(), with(), createHorizontalFacingDispatch().
Parameters
Block blockTexturedModel.Provider provider
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TexturedModel.Provider provider = ...;
instance.createHorizontallyRotatedBlock(block, provider);
net.minecraft.client.data.models.BlockModelGenerators#createItemWithGrassTint(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1361 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Item With Grass Tint
ทำงานยังไง
เรียกต่อ: createFlatItemModelWithBlockTexture(), asItem(), registerSimpleTintedItemModel(). สร้างออบเจ็กต์: GrassColorSource.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createLantern(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3096 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Lantern
ทำงานยังไง
เรียกต่อ: create(), registerSimpleFlatItemModel(), asItem(), accept(), multiVariant(), with(), createBooleanModelDispatch().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createMirroredColumnGenerator(Block,ResourceLocation,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:218 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Mirrored Column Generator
ทำงานยังไง
เรียกต่อ: create(), createRotatedVariant(), with(), createRotatedPillar(). คืนค่า: createRotatedVariant(block, resourceLocation, resourceLocation2).with(createRotatedPillar()).
Parameters
Block blockResourceLocation resourceLocationTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
BlockStateGenerator result = BlockModelGenerators.createMirroredColumnGenerator(block, resourceLocation, textureMapping, biConsumer);
net.minecraft.client.data.models.BlockModelGenerators#createMirroredCubeGenerator(Block,ResourceLocation,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:204 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Mirrored Cube Generator
ทำงานยังไง
เรียกต่อ: create(), createRotatedVariant(). คืนค่า: createRotatedVariant(block, resourceLocation, resourceLocation2).
Parameters
Block blockResourceLocation resourceLocationTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
BlockStateGenerator result = BlockModelGenerators.createMirroredCubeGenerator(block, resourceLocation, textureMapping, biConsumer);
net.minecraft.client.data.models.BlockModelGenerators#createMossyCarpet(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4165 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Mossy Carpet
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: create(), get(), updateTextures(), put(), getBlockTexture(), createWithSuffix(), multiPart(), condition().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createMultiface(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4131 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Multiface
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), createMultifaceBlockStates().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createMultiface(Block,Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4136 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Multiface
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), createMultifaceBlockStates().
Parameters
Block blockItem item
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Item item = ...;
instance.createMultiface(block, item);
net.minecraft.client.data.models.BlockModelGenerators#createMultifaceBlockStates(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4141 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Multiface Block States
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getModelLocation(), multiPart(), make(), condition(), stream(), map(), forEach(), defaultBlockState().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createMushroomBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2349 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Mushroom Block
ทำงานยังไง
เรียกต่อ: create(), defaultTexture(), decorateBlockModelLocation(), accept(), multiPart(), with(), condition(), term().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createNetherRoots(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4339 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Nether Roots
ทำงานยังไง
เรียกต่อ: createCrossBlockWithDefaultItem(), plant(), getBlockTexture(), getCrossPot(), create(), accept(), createSimpleBlock().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createNetherRoots(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createNonTemplateHorizontalBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3300 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Non Template Horizontal Block
ทำงานยังไง
เรียกต่อ: accept(), multiVariant(), variant(), with(), getModelLocation(), createHorizontalFacingDispatch().
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
instance.createNonTemplateHorizontalBlock(block);
net.minecraft.client.data.models.BlockModelGenerators#createNonTemplateModelBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1479 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Non Template Model Block
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
instance.createNonTemplateModelBlock(block);
net.minecraft.client.data.models.BlockModelGenerators#createNonTemplateModelBlock(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1483 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Non Template Model Block
ทำงานยังไง
เรียกต่อ: accept(), createSimpleBlock(), getModelLocation().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createNonTemplateModelBlock(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createNormalTorch(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3676 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Normal Torch
ทำงานยังไง
เรียกต่อ: torch(), accept(), createSimpleBlock(), create(), multiVariant(), variant(), with(), createTorchHorizontalDispatch().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createNormalTorch(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createNorthWestMirroredCubeGenerator(Block,ResourceLocation,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:211 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง North West Mirrored Cube Generator
ทำงานยังไง
เรียกต่อ: create(), createSimpleBlock(). คืนค่า: createSimpleBlock(block, resourceLocation2).
Parameters
Block blockResourceLocation resourceLocationTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
BlockStateGenerator result = BlockModelGenerators.createNorthWestMirroredCubeGenerator(block, resourceLocation, textureMapping, biConsumer);
net.minecraft.client.data.models.BlockModelGenerators#createNyliumBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2938 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Nylium Block
ทำงานยังไง
เรียกต่อ: put(), getBlockTexture(), accept(), createSimpleBlock(), create(). สร้างออบเจ็กต์: TextureMapping.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createOrientableTrapdoor(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1431 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Orientable Trapdoor
ทำงานยังไง
เรียกต่อ: defaultTexture(), create(), accept(), registerSimpleItemModel().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createOrientableTrapdoor(Block,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1055 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Orientable Trapdoor
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), properties(), select(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
BlockStateGenerator result = BlockModelGenerators.createOrientableTrapdoor(block, resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.BlockModelGenerators#createParticleOnlyBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1759 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Particle Only Block
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createParticleOnlyBlock(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1755 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Particle Only Block
ทำงานยังไง
เรียกต่อ: accept(), createSimpleBlock(), createParticleOnlyBlockModel().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createParticleOnlyBlock(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createParticleOnlyBlockModel(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1751 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Particle Only Block Model
ทำงานยังไง
เรียกต่อ: create(), particle(). คืนค่า: ModelTemplates.PARTICLE_ONLY.create(block, TextureMapping.particle(block2), this.modelOutput).
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
ResourceLocation result = instance.createParticleOnlyBlockModel(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createPassiveRail(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1662 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Passive Rail
ทำงานยังไง
เรียกต่อ: rail(), getBlockTexture(), create(), registerSimpleFlatItemModel(), accept(), multiVariant(), with(), property().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createPillarBlockUVLocked(Block,TextureMapping,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1225 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Pillar Block UVLocked
ทำงานยังไง
เรียกต่อ: create(), multiVariant(), variant(), with(), property(), select().
Parameters
Block blockTextureMapping textureMappingBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
Block block = ...;
TextureMapping textureMapping = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
BlockStateGenerator result = BlockModelGenerators.createPillarBlockUVLocked(block, textureMapping, biConsumer);
net.minecraft.client.data.models.BlockModelGenerators#createPistonVariant(Block,ResourceLocation,TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3464 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Piston Variant
ทำงานยังไง
เรียกต่อ: create(), accept(), multiVariant(), with(), createBooleanModelDispatch(), createFacingDispatch().
Parameters
Block blockResourceLocation resourceLocationTextureMapping textureMapping
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
TextureMapping textureMapping = ...;
instance.createPistonVariant(block, resourceLocation, textureMapping);
net.minecraft.client.data.models.BlockModelGenerators#createPlant(Block,Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1527 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Plant
ทำงานยังไง
เรียกต่อ: createCrossBlock(), getPlantTextureMapping(), getCrossPot(), create(), accept(), createSimpleBlock().
Parameters
Block blockBlock block2BlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createPlant(block, block2, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createPlantWithDefaultItem(Block,Block,BlockModelGenerators.PlantType)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1522 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Plant With Default Item
ทำงานยังไง
เรียกต่อ: registerSimpleItemModel(), asItem(), createItemModel(), createPlant().
Parameters
Block blockBlock block2BlockModelGenerators.PlantType plantType
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
BlockModelGenerators.PlantType plantType = ...;
instance.createPlantWithDefaultItem(block, block2, plantType);
net.minecraft.client.data.models.BlockModelGenerators#createPointedDripstoneVariant(Direction,DripstoneThickness)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2931 - Modifiers:
public final - Return:
Variant
คืออะไร
สร้าง Pointed Dripstone Variant
ทำงานยังไง
เรียกต่อ: getSerializedName(), cross(), getBlockTexture(), variant(), with(), createWithSuffix().
Parameters
Direction directionDripstoneThickness dripstoneThickness
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Direction direction = ...;
DripstoneThickness dripstoneThickness = ...;
Variant result = instance.createPointedDripstoneVariant(direction, dripstoneThickness);
net.minecraft.client.data.models.BlockModelGenerators#createPottedAzalea(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2197 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Potted Azalea
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(), pottedAzalea(), accept(), createSimpleBlock().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createPressurePlate(Block,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1325 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Pressure Plate
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), createBooleanModelDispatch(). คืนค่า: MultiVariantGenerator.multiVariant(block).with(createBooleanModelDispatch(BlockStateProperties.POWERED, resourceLocation2, resourceLocation)).
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
BlockStateGenerator result = BlockModelGenerators.createPressurePlate(block, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createPumpkinVariant(Block,TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2498 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Pumpkin Variant
ทำงานยังไง
เรียกต่อ: create(), copyAndUpdate(), getBlockTexture(), accept(), multiVariant(), variant(), with(), createHorizontalFacingDispatch().
Parameters
Block blockTextureMapping textureMapping
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TextureMapping textureMapping = ...;
instance.createPumpkinVariant(block, textureMapping);
net.minecraft.client.data.models.BlockModelGenerators#createRotatableColumn(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:2976 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Rotatable Column
ทำงานยังไง
เรียกต่อ: accept(), multiVariant(), variant(), with(), getModelLocation(), createColumnWithFacing().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createRotatedMirroredVariantBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:354 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Rotated Mirrored Variant Block
ทำงานยังไง
เรียกต่อ: create(), accept(), createRotatedVariant().
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
instance.createRotatedMirroredVariantBlock(block);
net.minecraft.client.data.models.BlockModelGenerators#createRotatedPillar()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1216 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Rotated Pillar
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createRotatedPillarWithHorizontalVariant(Block,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1258 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Rotated Pillar With Horizontal Variant
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), property(), select(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
BlockStateGenerator result = BlockModelGenerators.createRotatedPillarWithHorizontalVariant(block, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createRotatedPillarWithHorizontalVariant(Block,TexturedModel.Provider,TexturedModel.Provider)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1274 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Rotated Pillar With Horizontal Variant
ทำงานยังไง
เรียกต่อ: create(), accept().
Parameters
Block blockTexturedModel.Provider providerTexturedModel.Provider provider2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TexturedModel.Provider provider = ...;
TexturedModel.Provider provider2 = ...;
instance.createRotatedPillarWithHorizontalVariant(block, provider, provider2);
net.minecraft.client.data.models.BlockModelGenerators#createRotatedVariant(Block,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:323 - Modifiers:
public static - Return:
MultiVariantGenerator
คืออะไร
สร้าง Rotated Variant
ทำงานยังไง
เรียกต่อ: multiVariant(), createRotatedVariants(). คืนค่า: MultiVariantGenerator.multiVariant(block, createRotatedVariants(resourceLocation)).
Parameters
Block blockResourceLocation resourceLocation
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
MultiVariantGenerator result = BlockModelGenerators.createRotatedVariant(block, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createRotatedVariant(Block,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:336 - Modifiers:
public static - Return:
MultiVariantGenerator
คืออะไร
สร้าง Rotated Variant
ทำงานยังไง
เรียกต่อ: multiVariant(), variant(), with().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
MultiVariantGenerator result = BlockModelGenerators.createRotatedVariant(block, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.BlockModelGenerators#createRotatedVariantBlock(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:360 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Rotated Variant Block
ทำงานยังไง
เรียกต่อ: create(), accept(), createRotatedVariant().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createRotatedVariants(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:327 - Modifiers:
public static - Return:
Variant[]
คืออะไร
สร้าง Rotated Variants
ทำงานยังไง
เรียกต่อ: variant(), with().
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
Variant[] result = BlockModelGenerators.createRotatedVariants(resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createShulkerBox(Block,DyeColor)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4310 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Shulker Box
ทำงานยังไง
เรียกต่อ: createParticleOnlyBlock(), asItem(), create(), particle(), specialModel(), Unbaked(), accept(). สร้างออบเจ็กต์: ShulkerBoxSpecialRenderer.Unbaked.
Parameters
Block blockDyeColor dyeColor
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
DyeColor dyeColor = ...;
instance.createShulkerBox(block, dyeColor);
net.minecraft.client.data.models.BlockModelGenerators#createSideFireModels(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3020 - Modifiers:
public final - Return:
List<ResourceLocation>
คืออะไร
สร้าง Side Fire Models
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), fire0(), fire1(), of(). คืนค่า: ImmutableList.of(resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
List<ResourceLocation> result = instance.createSideFireModels(block);
net.minecraft.client.data.models.BlockModelGenerators#createSimpleBlock(Block,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1212 - Modifiers:
public static - Return:
MultiVariantGenerator
คืออะไร
สร้าง Simple Block
ทำงานยังไง
เรียกต่อ: multiVariant(), variant(), with(). คืนค่า: MultiVariantGenerator.multiVariant(block, Variant.variant().with(VariantProperties.MODEL, resourceLocation)).
Parameters
Block blockResourceLocation resourceLocation
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
MultiVariantGenerator result = BlockModelGenerators.createSimpleBlock(block, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#createSlab(Block,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1329 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Slab
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), property(), select(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
BlockStateGenerator result = BlockModelGenerators.createSlab(block, resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.BlockModelGenerators#createStairs(Block,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:711 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Stairs
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), properties(), select(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
BlockStateGenerator result = BlockModelGenerators.createStairs(block, resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.BlockModelGenerators#createStems(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1546 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Stems
ทำงานยังไง
เรียกต่อ: registerSimpleFlatItemModel(), asItem(), stem(), attachedStem(), create(), accept(), multiVariant(), variant().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createStems(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#createSuffixedVariant(Block,String,ModelTemplate,Function<ResourceLocation, TextureMapping>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1319 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Suffixed Variant
ทำงานยังไง
เรียกต่อ: createWithSuffix(), apply(), getBlockTexture(). คืนค่า: modelTemplate.createWithSuffix(block, string, function.apply(TextureMapping.getBlockTexture(block, string)), this.modelOutput).
Parameters
Block blockString stringModelTemplate modelTemplateFunction<ResourceLocation, TextureMapping> function
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ModelTemplate modelTemplate = ...;
Function<ResourceLocation, TextureMapping> function = ...;
ResourceLocation result = instance.createSuffixedVariant(block, "value", modelTemplate, function);
net.minecraft.client.data.models.BlockModelGenerators#createTintedDoublePlant(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1614 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Tinted Double Plant
ทำงานยังไง
เรียกต่อ: createFlatItemModelWithBlockTexture(), asItem(), registerSimpleTintedItemModel(), createDoublePlant(). สร้างออบเจ็กต์: GrassColorSource.
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createTintedLeaves(Block,TexturedModel.Provider,int)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1349 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Tinted Leaves
ทำงานยังไง
เรียกต่อ: create(), accept(), createSimpleBlock(), registerSimpleTintedItemModel(), constantTint().
Parameters
Block blockTexturedModel.Provider providerint i
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TexturedModel.Provider provider = ...;
instance.createTintedLeaves(block, provider, 0);
net.minecraft.client.data.models.BlockModelGenerators#createTopFireModels(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3032 - Modifiers:
public final - Return:
List<ResourceLocation>
คืออะไร
สร้าง Top Fire Models
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), fire0(), fire1(), of(). คืนค่า: ImmutableList.of(resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
List<ResourceLocation> result = instance.createTopFireModels(block);
net.minecraft.client.data.models.BlockModelGenerators#createTorchHorizontalDispatch()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:305 - Modifiers:
public static - Return:
PropertyDispatch
คืออะไร
สร้าง Torch Horizontal Dispatch
ทำงานยังไง
เรียกต่อ: property(), select(), variant(), with().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createTrapdoor(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1440 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Trapdoor
ทำงานยังไง
เรียกต่อ: defaultTexture(), create(), accept(), registerSimpleItemModel().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createTrapdoor(Block,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1157 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Trapdoor
ทำงานยังไง
เรียกต่อ: multiVariant(), with(), properties(), select(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
BlockStateGenerator result = BlockModelGenerators.createTrapdoor(block, resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.BlockModelGenerators#createTrivialBlock(Block,TexturedModel.Provider)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1345 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Trivial Block
ทำงานยังไง
เรียกต่อ: accept(), createSimpleBlock(), create().
Parameters
Block blockTexturedModel.Provider provider
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
TexturedModel.Provider provider = ...;
instance.createTrivialBlock(block, provider);
net.minecraft.client.data.models.BlockModelGenerators#createTrivialCube(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1341 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Trivial Cube
ทำงานยังไง
เรียกต่อ: createTrivialBlock().
Parameters
Block block
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#createTurtleEggModel(int,String,TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4068 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Turtle Egg Model
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: create(), decorateBlockModelLocation(). สร้างออบเจ็กต์: UnsupportedOperationException. มีจุด return อย่างน้อย 3 จุด.
Parameters
int iString stringTextureMapping textureMapping
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
TextureMapping textureMapping = ...;
ResourceLocation result = instance.createTurtleEggModel(0, "value", textureMapping);
net.minecraft.client.data.models.BlockModelGenerators#createTurtleEggModel(Integer,Integer)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4086 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Turtle Egg Model
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: cube(), getBlockTexture(). สร้างออบเจ็กต์: UnsupportedOperationException. มีจุด return อย่างน้อย 3 จุด.
Parameters
Integer integerInteger integer2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Integer integer = ...;
Integer integer2 = ...;
ResourceLocation result = instance.createTurtleEggModel(integer, integer2);
net.minecraft.client.data.models.BlockModelGenerators#createWall(Block,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:635 - Modifiers:
public static - Return:
BlockStateGenerator
คืออะไร
สร้าง Wall
ทำงานยังไง
เรียกต่อ: multiPart(), with(), condition(), term(), variant().
Parameters
Block blockResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
Block block = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
BlockStateGenerator result = BlockModelGenerators.createWall(block, resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.BlockModelGenerators#createWeightedPressurePlate(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3199 - Modifiers:
public final - Return:
void
คืออะไร
สร้าง Weighted Pressure Plate
ทำงานยังไง
เรียกต่อ: defaultTexture(), create(), accept(), multiVariant(), with(), createEmptyOrFullDispatch().
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
Block block2 = ...;
instance.createWeightedPressurePlate(block, block2);
net.minecraft.client.data.models.BlockModelGenerators#family(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1366 - Modifiers:
public final - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ family ตาม implementation ของ BlockModelGenerators
ทำงานยังไง
เรียกต่อ: getOrDefault(), get(), BlockFamilyProvider(), getMapping(), fullBlock(), getTemplate(). สร้างออบเจ็กต์: BlockModelGenerators.BlockFamilyProvider. คืนค่า: new BlockModelGenerators.BlockFamilyProvider(texturedModel.getMapping()).fullBlock(block, texturedModel.getTemplate()).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.family(block);
net.minecraft.client.data.models.BlockModelGenerators#generateSimpleSpecialItemModel(Block,SpecialModelRenderer.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4526 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateSimpleSpecialItemModel ตาม implementation ของ BlockModelGenerators
ทำงานยังไง
เรียกต่อ: asItem(), getModelLocation(), accept(), specialModel().
Parameters
Block blockSpecialModelRenderer.Unbaked unbaked
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
SpecialModelRenderer.Unbaked unbaked = ...;
instance.generateSimpleSpecialItemModel(block, unbaked);
net.minecraft.client.data.models.BlockModelGenerators#registerSimpleFlatItemModel(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:267 - Modifiers:
public final - Return:
void
คืออะไร
ลงทะเบียน Simple Flat Item Model
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asItem(), registerSimpleItemModel(), createFlatItemModelWithBlockTexture().
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
instance.registerSimpleFlatItemModel(block);
net.minecraft.client.data.models.BlockModelGenerators#registerSimpleFlatItemModel(Block,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:274 - Modifiers:
public final - Return:
void
คืออะไร
ลงทะเบียน Simple Flat Item Model
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asItem(), registerSimpleItemModel(), createFlatItemModelWithBlockTexture().
Parameters
Block blockString string
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
instance.registerSimpleFlatItemModel(block, "value");
net.minecraft.client.data.models.BlockModelGenerators#registerSimpleFlatItemModel(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:263 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน Simple Flat Item Model
ทำงานยังไง
เรียกต่อ: registerSimpleItemModel(), createFlatItemModel().
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#registerSimpleItemModel(Block,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:235 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน Simple Item Model
ทำงานยังไง
เรียกต่อ: accept(), asItem(), plainModel().
Parameters
Block blockResourceLocation resourceLocation
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
instance.registerSimpleItemModel(block, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#registerSimpleItemModel(Item,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:231 - Modifiers:
public final - Return:
void
คืออะไร
ลงทะเบียน Simple Item Model
ทำงานยังไง
เรียกต่อ: accept(), plainModel().
Parameters
Item itemResourceLocation resourceLocation
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Item item = ...;
ResourceLocation resourceLocation = ...;
instance.registerSimpleItemModel(item, resourceLocation);
net.minecraft.client.data.models.BlockModelGenerators#registerSimpleTintedItemModel(Block,ResourceLocation,ItemTintSource)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:239 - Modifiers:
public final - Return:
void
คืออะไร
ลงทะเบียน Simple Tinted Item Model
ทำงานยังไง
เรียกต่อ: accept(), asItem(), tintedModel().
Parameters
Block blockResourceLocation resourceLocationItemTintSource itemTintSource
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
ResourceLocation resourceLocation = ...;
ItemTintSource itemTintSource = ...;
instance.registerSimpleTintedItemModel(block, resourceLocation, itemTintSource);
net.minecraft.client.data.models.BlockModelGenerators#registerTwoLayerFlatItemModel(Block,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:281 - Modifiers:
public final - Return:
void
คืออะไร
ลงทะเบียน Two Layer Flat Item Model
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asItem(), createFlatItemModelWithBlockTextureAndOverlay(), registerSimpleItemModel().
Parameters
Block blockString string
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
instance.registerTwoLayerFlatItemModel(block, "value");
net.minecraft.client.data.models.BlockModelGenerators#run()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:4532 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
เรียกต่อ: getAllFamilies(), filter(), forEach(), family(), getBaseBlock(), generateFor(), donateModelTo(), createCopperBulb(). สร้างออบเจ็กต์: ConduitSpecialRenderer.Unbaked, DecoratedPotSpecialRenderer.Unbaked.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators#woodProvider(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:1475 - Modifiers:
public final - Return:
BlockModelGenerators.WoodProvider
คืออะไร
ดำเนินการ woodProvider ตาม implementation ของ BlockModelGenerators
ทำงานยังไง
เรียกต่อ: WoodProvider(), logColumn(). สร้างออบเจ็กต์: BlockModelGenerators.WoodProvider. คืนค่า: new BlockModelGenerators.WoodProvider(TextureMapping.logColumn(block)).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators instance = ...;
Block block = ...;
BlockModelGenerators.WoodProvider result = instance.woodProvider(block);
net.minecraft.client.data.models.BlockModelGenerators#wrapModels(List<ResourceLocation>,UnaryOperator<Variant>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:3044 - Modifiers:
public static - Return:
List<Variant>
คืออะไร
ดำเนินการ wrapModels ตาม implementation ของ BlockModelGenerators
ทำงานยังไง
เรียกต่อ: stream(), map(), variant(), with(), collect(), toList().
Parameters
List<ResourceLocation> listUnaryOperator<Variant> unaryOperator
ตัวอย่างใช้งาน
List<ResourceLocation> list = ...;
UnaryOperator<Variant> unaryOperator = ...;
List<Variant> result = BlockModelGenerators.wrapModels(list, unaryOperator);
BlockModelGenerators$BlockFamilyProvider
- Full name:
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/BlockModelGenerators.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#BlockFamilyProvider(TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5224 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockModelGenerators.BlockFamilyProvider ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: mapping.
Parameters
TextureMapping textureMapping
ตัวอย่างใช้งาน
TextureMapping textureMapping = ...;
BlockModelGenerators.BlockFamilyProvider instance = new BlockModelGenerators.BlockFamilyProvider(textureMapping);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#button(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5250 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ button ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createButton(), registerSimpleItemModel(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.button(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#customFence(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5269 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ customFence ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: customParticle(), create(), accept(), createCustomFence(), registerSimpleItemModel(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.customFence(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#customFenceGate(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5292 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ customFenceGate ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: customParticle(), create(), accept(), createFenceGate(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.customFenceGate(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#donateModelTo(Block,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5242 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ donateModelTo ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: getModelLocation(), accept(), createSimpleBlock(), copy(), asItem(), add(). คืนค่า: this.
Parameters
Block blockBlock block2
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
Block block2 = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.donateModelTo(block, block2);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#fence(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5283 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ fence ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createFence(), registerSimpleItemModel(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.fence(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#fenceGate(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5303 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ fenceGate ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createFenceGate(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.fenceGate(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#fullBlock(Block,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5228 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ fullBlock ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fullBlock. เรียกต่อ: create(), containsKey(), accept(), get(), createSimpleBlock(). คืนค่า: this.
Parameters
Block blockModelTemplate modelTemplate
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
ModelTemplate modelTemplate = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.fullBlock(block, modelTemplate);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#generateFor(BlockFamily)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5378 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ generateFor ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: family. เรียกต่อ: getVariants(), forEach(), contains(), get(), accept(). คืนค่า: this.
Parameters
BlockFamily blockFamily
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
BlockFamily blockFamily = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.generateFor(blockFamily);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#pressurePlate(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5313 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ pressurePlate ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createPressurePlate(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.pressurePlate(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#sign(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5320 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ sign ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: family. เรียกต่อ: getVariants(), get(), create(), accept(), createSimpleBlock(), registerSimpleFlatItemModel(), asItem(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.sign(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#slab(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5333 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ slab ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fullBlock. เรียกต่อ: getOrCreateModel(), accept(), createSlab(), registerSimpleItemModel(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.slab(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#stairs(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5345 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ stairs ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: getOrCreateModel(), accept(), createStairs(), registerSimpleItemModel(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.stairs(block);
net.minecraft.client.data.models.BlockModelGenerators$BlockFamilyProvider#wall(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5259 - Modifiers:
public - Return:
BlockModelGenerators.BlockFamilyProvider
คืออะไร
ดำเนินการ wall ตาม implementation ของ BlockModelGenerators$BlockFamilyProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createWall(), registerSimpleItemModel(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.BlockFamilyProvider instance = ...;
Block block = ...;
BlockModelGenerators.BlockFamilyProvider result = instance.wall(block);
BlockModelGenerators$PlantType
- Full name:
net.minecraft.client.data.models.BlockModelGenerators$PlantType - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/BlockModelGenerators.java - Type:
enum - Modifiers:
public
net.minecraft.client.data.models.BlockModelGenerators$PlantType#createItemModel(BlockModelGenerators,Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5428 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้าง Item Model
ทำงานยังไง
เรียกต่อ: asItem(), createFlatItemModelWithBlockTextureAndOverlay(), createFlatItemModelWithBlockTexture().
Parameters
BlockModelGenerators blockModelGeneratorsBlock block
ตัวอย่างใช้งาน
BlockModelGenerators.PlantType instance = ...;
BlockModelGenerators blockModelGenerators = ...;
Block block = ...;
ResourceLocation result = instance.createItemModel(blockModelGenerators, block);
net.minecraft.client.data.models.BlockModelGenerators$PlantType#getCross()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5420 - Modifiers:
public - Return:
ModelTemplate
คืออะไร
อ่านค่า Cross
ทำงานยังไง
คืนค่า: this.blockTemplate.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators$PlantType#getCrossPot()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5424 - Modifiers:
public - Return:
ModelTemplate
คืออะไร
อ่านค่า Cross Pot
ทำงานยังไง
คืนค่า: this.flowerPotTemplate.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.BlockModelGenerators$PlantType#getPlantTextureMapping(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5439 - Modifiers:
public - Return:
TextureMapping
คืออะไร
อ่านค่า Plant Texture Mapping
ทำงานยังไง
เรียกต่อ: plantEmissive(), plant(). คืนค่า: this.isEmissive ? TextureMapping.plantEmissive(block) : TextureMapping.plant(block).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.PlantType instance = ...;
Block block = ...;
TextureMapping result = instance.getPlantTextureMapping(block);
net.minecraft.client.data.models.BlockModelGenerators$PlantType#getTextureMapping(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5435 - Modifiers:
public - Return:
TextureMapping
คืออะไร
อ่านค่า Texture Mapping
ทำงานยังไง
เรียกต่อ: crossEmissive(), cross(). คืนค่า: this.isEmissive ? TextureMapping.crossEmissive(block) : TextureMapping.cross(block).
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.PlantType instance = ...;
Block block = ...;
TextureMapping result = instance.getTextureMapping(block);
BlockModelGenerators$WoodProvider
- Full name:
net.minecraft.client.data.models.BlockModelGenerators$WoodProvider - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/BlockModelGenerators.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.BlockModelGenerators$WoodProvider#log(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5459 - Modifiers:
public - Return:
BlockModelGenerators.WoodProvider
คืออะไร
ดำเนินการ log ตาม implementation ของ BlockModelGenerators$WoodProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createAxisAlignedPillarBlock(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.WoodProvider instance = ...;
Block block = ...;
BlockModelGenerators.WoodProvider result = instance.log(block);
net.minecraft.client.data.models.BlockModelGenerators$WoodProvider#logUVLocked(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5472 - Modifiers:
public - Return:
BlockModelGenerators.WoodProvider
คืออะไร
ดำเนินการ logUVLocked ตาม implementation ของ BlockModelGenerators$WoodProvider
ทำงานยังไง
เรียกต่อ: accept(), createPillarBlockUVLocked(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.WoodProvider instance = ...;
Block block = ...;
BlockModelGenerators.WoodProvider result = instance.logUVLocked(block);
net.minecraft.client.data.models.BlockModelGenerators$WoodProvider#logWithHorizontal(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5465 - Modifiers:
public - Return:
BlockModelGenerators.WoodProvider
คืออะไร
ดำเนินการ logWithHorizontal ตาม implementation ของ BlockModelGenerators$WoodProvider
ทำงานยังไง
เรียกต่อ: create(), accept(), createRotatedPillarWithHorizontalVariant(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.WoodProvider instance = ...;
Block block = ...;
BlockModelGenerators.WoodProvider result = instance.logWithHorizontal(block);
net.minecraft.client.data.models.BlockModelGenerators$WoodProvider#wood(Block)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5452 - Modifiers:
public - Return:
BlockModelGenerators.WoodProvider
คืออะไร
ดำเนินการ wood ตาม implementation ของ BlockModelGenerators$WoodProvider
ทำงานยังไง
เรียกต่อ: copyAndUpdate(), get(), create(), accept(), createAxisAlignedPillarBlock(). คืนค่า: this.
Parameters
Block block
ตัวอย่างใช้งาน
BlockModelGenerators.WoodProvider instance = ...;
Block block = ...;
BlockModelGenerators.WoodProvider result = instance.wood(block);
net.minecraft.client.data.models.BlockModelGenerators$WoodProvider#WoodProvider(TextureMapping)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/BlockModelGenerators.java:5448 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockModelGenerators.WoodProvider ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: logMapping.
Parameters
TextureMapping textureMapping
ตัวอย่างใช้งาน
TextureMapping textureMapping = ...;
BlockModelGenerators.WoodProvider instance = new BlockModelGenerators.WoodProvider(textureMapping);
EquipmentAssetProvider
- Full name:
net.minecraft.client.data.models.EquipmentAssetProvider - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/EquipmentAssetProvider.java - Type:
class - Modifiers:
public - Implements:
DataProvider
net.minecraft.client.data.models.EquipmentAssetProvider#EquipmentAssetProvider(PackOutput)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/EquipmentAssetProvider.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EquipmentAssetProvider ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: pathProvider. เรียกต่อ: createPathProvider().
Parameters
PackOutput packOutput
ตัวอย่างใช้งาน
PackOutput packOutput = ...;
EquipmentAssetProvider instance = new EquipmentAssetProvider(packOutput);
net.minecraft.client.data.models.EquipmentAssetProvider#getName()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/EquipmentAssetProvider.java:104 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: "Equipment Asset Definitions".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.EquipmentAssetProvider#run(CachedOutput)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/EquipmentAssetProvider.java:94 - Modifiers:
public - Return:
CompletableFuture<?>
คืออะไร
สั่งทำงาน run
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: bootstrap(), putIfAbsent(), saveAll(). สร้างออบเจ็กต์: HashMap<>, IllegalStateException. คืนค่า: DataProvider.saveAll(cachedOutput, EquipmentClientInfo.CODEC, this.pathProvider::json, map).
Parameters
CachedOutput cachedOutput
ตัวอย่างใช้งาน
EquipmentAssetProvider instance = ...;
CachedOutput cachedOutput = ...;
CompletableFuture<?> result = instance.run(cachedOutput);
ItemModelGenerators
- Full name:
net.minecraft.client.data.models.ItemModelGenerators - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/ItemModelGenerators.java - Type:
class - Modifiers:
public
net.minecraft.client.data.models.ItemModelGenerators#addPotionTint(Item,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:339 - Modifiers:
public final - Return:
void
คืออะไร
เพิ่ม Potion Tint
ทำงานยังไง
เรียกต่อ: accept(), tintedModel(). สร้างออบเจ็กต์: Potion.
Parameters
Item itemResourceLocation resourceLocation
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ResourceLocation resourceLocation = ...;
instance.addPotionTint(item, resourceLocation);
net.minecraft.client.data.models.ItemModelGenerators#createCompassModels(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:116 - Modifiers:
public final - Return:
List<RangeSelectItemModel.Entry>
คืออะไร
สร้าง Compass Models
ทำงานยังไง
มีการวนลูป. เรียกต่อ: plainModel(), createFlatItemModel(), add(), override(), positiveModulo(), format(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: list.
Parameters
Item item
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
List<RangeSelectItemModel.Entry> result = instance.createCompassModels(item);
net.minecraft.client.data.models.ItemModelGenerators#createFlatItemModel(Item,Item,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:99 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), layer0(). คืนค่า: modelTemplate.create(ModelLocationUtils.getModelLocation(item), TextureMapping.layer0(item2), this.modelOutput).
Parameters
Item itemItem item2ModelTemplate modelTemplate
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
Item item2 = ...;
ModelTemplate modelTemplate = ...;
ResourceLocation result = instance.createFlatItemModel(item, item2, modelTemplate);
net.minecraft.client.data.models.ItemModelGenerators#createFlatItemModel(Item,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:85 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), layer0(). คืนค่า: modelTemplate.create(ModelLocationUtils.getModelLocation(item), TextureMapping.layer0(item), this.modelOutput).
Parameters
Item itemModelTemplate modelTemplate
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ModelTemplate modelTemplate = ...;
ResourceLocation result = instance.createFlatItemModel(item, modelTemplate);
net.minecraft.client.data.models.ItemModelGenerators#createFlatItemModel(Item,String,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:93 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
สร้าง Flat Item Model
ทำงานยังไง
เรียกต่อ: create(), getModelLocation(), layer0(), getItemTexture().
Parameters
Item itemString stringModelTemplate modelTemplate
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ModelTemplate modelTemplate = ...;
ResourceLocation result = instance.createFlatItemModel(item, "value", modelTemplate);
net.minecraft.client.data.models.ItemModelGenerators#createFlatModelDispatch(ItemModel.Unbaked,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:319 - Modifiers:
public static - Return:
ItemModel.Unbaked
คืออะไร
สร้าง Flat Model Dispatch
ทำงานยังไง
เรียกต่อ: select(), when(), of(). สร้างออบเจ็กต์: DisplayContext.
Parameters
ItemModel.Unbaked unbakedItemModel.Unbaked unbaked2
ตัวอย่างใช้งาน
ItemModel.Unbaked unbaked = ...;
ItemModel.Unbaked unbaked2 = ...;
ItemModel.Unbaked result = ItemModelGenerators.createFlatModelDispatch(unbaked, unbaked2);
net.minecraft.client.data.models.ItemModelGenerators#declareCustomModelItem(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:81 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ declareCustomModelItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: accept(), plainModel(), getModelLocation().
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateBooleanDispatch(Item,ConditionalItemModelProperty,ItemModel.Unbaked,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:270 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateBooleanDispatch ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: accept(), conditional().
Parameters
Item itemConditionalItemModelProperty conditionalItemModelPropertyItemModel.Unbaked unbakedItemModel.Unbaked unbaked2
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ConditionalItemModelProperty conditionalItemModelProperty = ...;
ItemModel.Unbaked unbaked = ...;
ItemModel.Unbaked unbaked2 = ...;
instance.generateBooleanDispatch(item, conditionalItemModelProperty, unbaked, unbaked2);
net.minecraft.client.data.models.ItemModelGenerators#generateBow(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:236 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateBow ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), getModelLocation(), createFlatItemModel(), accept(), conditional(), isUsingItem(), rangeSelect(), override(). สร้างออบเจ็กต์: UseDuration.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateBrush(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:282 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateBrush ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), getModelLocation(), accept(), rangeSelect(), override(). สร้างออบเจ็กต์: UseCycle.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateBundleCoverModel(Item,ModelTemplate,String)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:231 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
ดำเนินการ generateBundleCoverModel ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: getItemTexture(), create(), layer0(). คืนค่า: modelTemplate.create(item, TextureMapping.layer0(resourceLocation), this.modelOutput).
Parameters
Item itemModelTemplate modelTemplateString string
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ModelTemplate modelTemplate = ...;
ResourceLocation result = instance.generateBundleCoverModel(item, modelTemplate, "value");
net.minecraft.client.data.models.ItemModelGenerators#generateBundleModels(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:220 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateBundleModels ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), createFlatItemModel(), generateBundleCoverModel(), composite(), Unbaked(), conditional(), accept(), select(). สร้างออบเจ็กต์: BundleSelectedItemSpecialRenderer.Unbaked, BundleHasSelectedItem, DisplayContext.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateClockItem(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:152 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateClockItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
มีการวนลูป. เรียกต่อ: plainModel(), createFlatItemModel(), add(), override(), format(), accept(), inOverworld(), rangeSelect(). สร้างออบเจ็กต์: ArrayList<>, Time.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateCrossbow(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:252 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateCrossbow ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), getModelLocation(), createFlatItemModel(), accept(), conditional(), isUsingItem(), rangeSelect(), override(). สร้างออบเจ็กต์: CrossbowPull, Charge.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateDyedItem(Item,int)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:357 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateDyedItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: createFlatItemModel(), accept(), tintedModel(). สร้างออบเจ็กต์: Dye.
Parameters
Item itemint i
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateElytra(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:276 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateElytra ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), createFlatItemModel(), generateBooleanDispatch(). สร้างออบเจ็กต์: Broken.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateFishingRod(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:301 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateFishingRod ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), createFlatItemModel(), generateBooleanDispatch(). สร้างออบเจ็กต์: FishingRodCast.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateFlatItem(Item,Item,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:103 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateFlatItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: accept(), plainModel(), createFlatItemModel().
Parameters
Item itemItem item2ModelTemplate modelTemplate
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
Item item2 = ...;
ModelTemplate modelTemplate = ...;
instance.generateFlatItem(item, item2, modelTemplate);
net.minecraft.client.data.models.ItemModelGenerators#generateFlatItem(Item,ModelTemplate)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:89 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateFlatItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: accept(), plainModel(), createFlatItemModel().
Parameters
Item itemModelTemplate modelTemplate
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ModelTemplate modelTemplate = ...;
instance.generateFlatItem(item, modelTemplate);
net.minecraft.client.data.models.ItemModelGenerators#generateGoatHorn(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:307 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateGoatHorn ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), getModelLocation(), decorateItemModelLocation(), generateBooleanDispatch(), isUsingItem().
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateItemWithTintedOverlay(Item,ItemTintSource)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:107 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateItemWithTintedOverlay ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Item itemItemTintSource itemTintSource
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ItemTintSource itemTintSource = ...;
instance.generateItemWithTintedOverlay(item, itemTintSource);
net.minecraft.client.data.models.ItemModelGenerators#generateItemWithTintedOverlay(Item,String,ItemTintSource)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:111 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateItemWithTintedOverlay ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: generateLayeredItem(), getItemTexture(), accept(), tintedModel().
Parameters
Item itemString stringItemTintSource itemTintSource
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ItemTintSource itemTintSource = ...;
instance.generateItemWithTintedOverlay(item, "value", itemTintSource);
net.minecraft.client.data.models.ItemModelGenerators#generateLayeredItem(Item,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:173 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
ดำเนินการ generateLayeredItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: create(), layered(). คืนค่า: ModelTemplates.TWO_LAYERED_ITEM.create(item, TextureMapping.layered(resourceLocation, resourceLocation2), this.modelOutput).
Parameters
Item itemResourceLocation resourceLocationResourceLocation resourceLocation2
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation result = instance.generateLayeredItem(item, resourceLocation, resourceLocation2);
net.minecraft.client.data.models.ItemModelGenerators#generateLayeredItem(ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:177 - Modifiers:
public final - Return:
ResourceLocation
คืออะไร
ดำเนินการ generateLayeredItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: create(), layered(). คืนค่า: ModelTemplates.TWO_LAYERED_ITEM.create(resourceLocation, TextureMapping.layered(resourceLocation2, resourceLocation3), this.modelOutput).
Parameters
ResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation result = instance.generateLayeredItem(resourceLocation, resourceLocation2, resourceLocation3);
net.minecraft.client.data.models.ItemModelGenerators#generateLayeredItem(ResourceLocation,ResourceLocation,ResourceLocation,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:181 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateLayeredItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: create(), layered().
Parameters
ResourceLocation resourceLocationResourceLocation resourceLocation2ResourceLocation resourceLocation3ResourceLocation resourceLocation4
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
ResourceLocation resourceLocation4 = ...;
instance.generateLayeredItem(resourceLocation, resourceLocation2, resourceLocation3, resourceLocation4);
net.minecraft.client.data.models.ItemModelGenerators#generatePotion(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:343 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generatePotion ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: generateLayeredItem(), decorateItemModelLocation(), getModelLocation(), addPotionTint().
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateRecoveryCompassItem(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:147 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateRecoveryCompassItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: accept(), rangeSelect(), createCompassModels(). สร้างออบเจ็กต์: CompassAngle.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateShield(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:313 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateShield ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: specialModel(), getModelLocation(), Unbaked(), generateBooleanDispatch(), isUsingItem(). สร้างออบเจ็กต์: ShieldSpecialRenderer.Unbaked.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateSpawnEgg(Item,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:362 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateSpawnEgg ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: decorateItemModelLocation(), accept(), tintedModel(), constantTint().
Parameters
Item itemint iint j
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateSpyglass(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:325 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateSpyglass ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), createFlatItemModel(), getModelLocation(), accept(), createFlatModelDispatch().
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateStandardCompassItem(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:131 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateStandardCompassItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: createCompassModels(), accept(), conditional(), hasComponent(), rangeSelect(), inOverworld(). สร้างออบเจ็กต์: CompassAngle.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateTippedArrow(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:350 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateTippedArrow ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: generateLayeredItem(), getModelLocation(), addPotionTint().
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateTrident(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:331 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateTrident ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: plainModel(), createFlatItemModel(), specialModel(), getModelLocation(), Unbaked(), conditional(), isUsingItem(), accept(). สร้างออบเจ็กต์: TridentSpecialRenderer.Unbaked.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#generateTrimmableItem(Item,ResourceKey<EquipmentAsset>,String,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:187 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateTrimmableItem ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getModelLocation(), getItemTexture(), size(), withSuffix(), name(), withDefaultNamespace(), textureName(), generateLayeredItem(). สร้างออบเจ็กต์: ArrayList<>, Dye, TrimMaterialProperty.
Parameters
Item itemResourceKey<EquipmentAsset> resourceKeyString stringboolean bl
ตัวอย่างใช้งาน
ItemModelGenerators instance = ...;
Item item = ...;
ResourceKey<EquipmentAsset> resourceKey = ...;
instance.generateTrimmableItem(item, resourceKey, "value", true);
net.minecraft.client.data.models.ItemModelGenerators#generateWolfArmor(Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:367 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ generateWolfArmor ตาม implementation ของ ItemModelGenerators
ทำงานยังไง
เรียกต่อ: getItemTexture(), create(), layer0(), getModelLocation(), layered(), accept(), conditional(), hasComponent(). สร้างออบเจ็กต์: Dye.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ItemModelGenerators#ItemModelGenerators(ItemModelOutput,BiConsumer<ResourceLocation, ModelInstance>)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:76 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemModelGenerators ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: itemModelOutput, modelOutput.
Parameters
ItemModelOutput itemModelOutputBiConsumer<ResourceLocation, ModelInstance> biConsumer
ตัวอย่างใช้งาน
ItemModelOutput itemModelOutput = ...;
BiConsumer<ResourceLocation, ModelInstance> biConsumer = ...;
ItemModelGenerators instance = new ItemModelGenerators(itemModelOutput, biConsumer);
net.minecraft.client.data.models.ItemModelGenerators#run()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelGenerators.java:384 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
เรียกต่อ: generateFlatItem(), generateClockItem(), generateStandardCompassItem(), generateRecoveryCompassItem(), generateTrimmableItem(), generateDyedItem(), generateItemWithTintedOverlay(), generateBundleModels(). สร้างออบเจ็กต์: Firework, MapColor.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemModelOutput
- Full name:
net.minecraft.client.data.models.ItemModelOutput - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/ItemModelOutput.java - Type:
interface - Modifiers:
public
net.minecraft.client.data.models.ItemModelOutput#accept(Item,ItemModel.Unbaked)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelOutput.java:10 - Modifiers: ``
- Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Item itemItemModel.Unbaked unbaked
ตัวอย่างใช้งาน
ItemModelOutput instance = ...;
Item item = ...;
ItemModel.Unbaked unbaked = ...;
instance.accept(item, unbaked);
net.minecraft.client.data.models.ItemModelOutput#copy(Item,Item)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ItemModelOutput.java:12 - Modifiers: ``
- Return:
void
คืออะไร
คัดลอก copy
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Item itemItem item2
ตัวอย่างใช้งาน
ModelProvider
- Full name:
net.minecraft.client.data.models.ModelProvider - Package:
net.minecraft.client.data.models - Source:
clientOnly—net/minecraft/client/data/models/ModelProvider.java - Type:
class - Modifiers:
public - Implements:
DataProvider
net.minecraft.client.data.models.ModelProvider#getName()
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ModelProvider.java:65 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: "Model Definitions".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ModelProvider#ModelProvider(PackOutput)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ModelProvider.java:40 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ModelProvider ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: blockStatePathProvider, itemInfoPathProvider, modelPathProvider. เรียกต่อ: createPathProvider().
Parameters
PackOutput packOutput
ตัวอย่างใช้งาน
net.minecraft.client.data.models.ModelProvider#run(CachedOutput)
- Origin:
clientOnly - Source:
net/minecraft/client/data/models/ModelProvider.java:46 - Modifiers:
public - Return:
CompletableFuture<?>
คืออะไร
สั่งทำงาน run
ทำงานยังไง
เรียกต่อ: ItemInfoCollector(), BlockStateGeneratorCollector(), SimpleModelCollector(), validate(), finalizeAndValidate(), allOf(), save(). สร้างออบเจ็กต์: ModelProvider.ItemInfoCollector, ModelProvider.BlockStateGeneratorCollector, ModelProvider.SimpleModelCollector, BlockModelGenerators.
Parameters
CachedOutput cachedOutput
ตัวอย่างใช้งาน
ModelProvider instance = ...;
CachedOutput cachedOutput = ...;
CompletableFuture<?> result = instance.run(cachedOutput);