Package net.minecraft.data
Class BlockModelProvider
java.lang.Object
net.minecraft.data.BlockModelProvider
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) class
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Consumer<IFinishedBlockState>
private final BiConsumer<ResourceLocation,
Supplier<com.google.gson.JsonElement>> -
Constructor Summary
ConstructorDescriptionBlockModelProvider
(Consumer<IFinishedBlockState> p_i232514_1_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_i232514_2_, Consumer<Item> p_i232514_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate BlockModelDefinition
applyRotation
(JigsawOrientation p_239898_1_, BlockModelDefinition p_239898_2_) blockEntityModels
(Block p_239966_1_, Block p_239966_2_) blockEntityModels
(ResourceLocation p_239916_1_, Block p_239916_2_) private static BlockStateVariantBuilder.Four<Direction,
DoubleBlockHalf, DoorHingeSide, Boolean> configureDoorHalf
(BlockStateVariantBuilder.Four<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> p_239903_0_, DoubleBlockHalf p_239903_1_, ResourceLocation p_239903_2_, ResourceLocation p_239903_3_) private void
private void
createActiveRail
(Block p_240021_1_) private void
createAirLikeBlock
(Block p_239871_1_, Item p_239871_2_) private void
createAirLikeBlock
(Block p_239993_1_, ResourceLocation p_239993_2_) private void
createAnvil
(Block p_240025_1_) private void
createAxisAlignedPillarBlock
(Block p_239882_1_, TexturedModel.ISupplier p_239882_2_) private static IFinishedBlockState
createAxisAlignedPillarBlock
(Block p_239986_0_, ResourceLocation p_239986_1_) private void
createAxisAlignedPillarBlockCustomModel
(Block p_243685_1_, ResourceLocation p_243685_2_) private void
private List<BlockModelDefinition>
createBambooModels
(int p_239864_1_) private void
private void
createBedItem
(Block p_240015_1_, Block p_240015_2_) private void
createBeeNest
(Block p_239887_1_, Function<Block, ModelTextures> p_239887_2_) private void
private void
private static BlockStateVariantBuilder
createBooleanModelDispatch
(BooleanProperty p_239894_0_, ResourceLocation p_239894_1_, ResourceLocation p_239894_2_) private void
private static IFinishedBlockState
createButton
(Block p_239987_0_, ResourceLocation p_239987_1_, ResourceLocation p_239987_2_) private void
private void
createCampfires
(Block... p_239921_1_) private void
private void
private void
createChiseledSandsone
(Block p_239992_1_, Block p_239992_2_) private void
private void
private void
private void
createColoredBlockWithRandomRotations
(TexturedModel.ISupplier p_239907_1_, Block... p_239907_2_) private void
createColoredBlockWithStateRotations
(TexturedModel.ISupplier p_239948_1_, Block... p_239948_2_) private BlockStateVariantBuilder
private void
createCommandBlock
(Block p_240023_1_) private void
private void
private void
createCoral
(Block p_239873_1_, Block p_239873_2_, Block p_239873_3_, Block p_239873_4_, Block p_239873_5_, Block p_239873_6_, Block p_239873_7_, Block p_239873_8_) private void
createCoralFans
(Block p_239935_1_, Block p_239935_2_) private void
createCraftingTableLike
(Block p_239875_1_, Block p_239875_2_, BiFunction<Block, Block, ModelTextures> p_239875_3_) private void
createCropBlock
(Block p_239876_1_, Property<Integer> p_239876_2_, int... p_239876_3_) private void
createCrossBlock
(Block p_239937_1_, BlockModelProvider.TintMode p_239937_2_) private void
createCrossBlock
(Block p_239938_1_, BlockModelProvider.TintMode p_239938_2_, ModelTextures p_239938_3_) private void
createCrossBlockWithDefaultItem
(Block p_239877_1_, BlockModelProvider.TintMode p_239877_2_) private void
createCrossBlockWithDefaultItem
(Block p_239878_1_, BlockModelProvider.TintMode p_239878_2_, ModelTextures p_239878_3_) private void
private void
createDispenserBlock
(Block p_240029_1_) private void
createDoor
(Block p_239991_1_) private static IFinishedBlockState
createDoor
(Block p_239943_0_, ResourceLocation p_239943_1_, ResourceLocation p_239943_2_, ResourceLocation p_239943_3_, ResourceLocation p_239943_4_) private void
createDoubleBlock
(Block p_240011_1_, ResourceLocation p_240011_2_, ResourceLocation p_240011_3_) private void
createDoublePlant
(Block p_239955_1_, BlockModelProvider.TintMode p_239955_2_) private static <T extends Comparable<T>>
BlockStateVariantBuildercreateEmptyOrFullDispatch
(Property<T> p_239895_0_, T p_239895_1_, ResourceLocation p_239895_2_, ResourceLocation p_239895_3_) private void
private static BlockStateVariantBuilder
private void
private static IFinishedBlockState
createFence
(Block p_239994_0_, ResourceLocation p_239994_1_, ResourceLocation p_239994_2_) private static IFinishedBlockState
createFenceGate
(Block p_239960_0_, ResourceLocation p_239960_1_, ResourceLocation p_239960_2_, ResourceLocation p_239960_3_, ResourceLocation p_239960_4_) private void
private List<ResourceLocation>
createFloorFireModels
(Block p_240033_1_) private void
private void
createFurnace
(Block p_239977_1_, TexturedModel.ISupplier p_239977_2_) private void
createGlassBlocks
(Block p_239985_1_, Block p_239985_2_) private void
private void
createGrassLikeBlock
(Block p_239889_1_, ResourceLocation p_239889_2_, BlockModelDefinition p_239889_3_) private void
private void
private void
createGrowingPlant
(Block p_239936_1_, Block p_239936_2_, BlockModelProvider.TintMode p_239936_3_) private void
private static BlockStateVariantBuilder
private static BlockStateVariantBuilder
private void
createHorizontallyRotatedBlock
(Block p_239939_1_, TexturedModel.ISupplier p_239939_2_) private void
private void
private void
private void
createLantern
(Block p_240039_1_) private void
private void
private void
private void
createMushroomBlock
(Block p_240027_1_) private void
private void
private void
createNetherRoots
(Block p_240019_1_, Block p_240019_2_) private void
createNonTemplateHorizontalBlock
(Block p_240041_1_) private void
createNonTemplateModelBlock
(Block p_240014_1_) private void
createNonTemplateModelBlock
(Block p_239872_1_, Block p_239872_2_) private void
createNormalTorch
(Block p_240010_1_, Block p_240010_2_) private void
createNyliumBlock
(Block p_240031_1_) private void
private void
createOrientableTrapdoor
(Block p_239998_1_) private static IFinishedBlockState
createOrientableTrapdoor
(Block p_239988_0_, ResourceLocation p_239988_1_, ResourceLocation p_239988_2_, ResourceLocation p_239988_3_) private void
createPassiveRail
(Block p_240018_1_) private void
private void
private void
createPistonVariant
(Block p_239890_1_, ResourceLocation p_239890_2_, ModelTextures p_239890_3_) private void
createPlant
(Block p_239874_1_, Block p_239874_2_, BlockModelProvider.TintMode p_239874_3_) private static IFinishedBlockState
createPressurePlate
(Block p_240006_0_, ResourceLocation p_240006_1_, ResourceLocation p_240006_2_) private void
private void
createPumpkinVariant
(Block p_239879_1_, ModelTextures p_239879_2_) private void
private void
private void
private void
private void
private void
createRotatableColumn
(Block p_239839_1_) private void
createRotatedMirroredVariantBlock
(Block p_239953_1_) private static BlockStateVariantBuilder
private void
createRotatedPillarWithHorizontalVariant
(Block p_239883_1_, TexturedModel.ISupplier p_239883_2_, TexturedModel.ISupplier p_239883_3_) private static IFinishedBlockState
createRotatedPillarWithHorizontalVariant
(Block p_240000_0_, ResourceLocation p_240000_1_, ResourceLocation p_240000_2_) private static FinishedVariantBlockState
createRotatedVariant
(Block p_239968_0_, ResourceLocation p_239968_1_) private static FinishedVariantBlockState
createRotatedVariant
(Block p_239979_0_, ResourceLocation p_239979_1_, ResourceLocation p_239979_2_) private void
createRotatedVariantBlock
(Block p_239965_1_) private static BlockModelDefinition[]
createRotatedVariants
(ResourceLocation p_239915_0_) private void
private void
private void
createShulkerBox
(Block p_240043_1_) private List<ResourceLocation>
createSideFireModels
(Block p_240035_1_) private static FinishedVariantBlockState
createSimpleBlock
(Block p_239978_0_, ResourceLocation p_239978_1_) private void
createSimpleFlatItemModel
(Block p_239934_1_) private void
createSimpleFlatItemModel
(Block p_239885_1_, String p_239885_2_) private void
createSimpleFlatItemModel
(Item p_239866_1_) private static IFinishedBlockState
createSlab
(Block p_240001_0_, ResourceLocation p_240001_1_, ResourceLocation p_240001_2_, ResourceLocation p_240001_3_) private void
private void
private void
private void
private static IFinishedBlockState
createStairs
(Block p_239980_0_, ResourceLocation p_239980_1_, ResourceLocation p_239980_2_, ResourceLocation p_239980_3_) private void
createStems
(Block p_239954_1_, Block p_239954_2_) private void
private void
private ResourceLocation
createSuffixedVariant
(Block p_239886_1_, String p_239886_2_, ModelsUtil p_239886_3_, Function<ResourceLocation, ModelTextures> p_239886_4_) private void
private void
private void
private List<ResourceLocation>
createTopFireModels
(Block p_240037_1_) private static BlockStateVariantBuilder
private void
createTrapdoor
(Block p_240004_1_) private static IFinishedBlockState
createTrapdoor
(Block p_239995_0_, ResourceLocation p_239995_1_, ResourceLocation p_239995_2_, ResourceLocation p_239995_3_) private void
private void
private void
createTrivialBlock
(Block p_239880_1_, ModelTextures p_239880_2_, ModelsUtil p_239880_3_) private void
createTrivialBlock
(Block p_239956_1_, TexturedModel.ISupplier p_239956_2_) private void
createTrivialCube
(Block p_239975_1_) private void
private ResourceLocation
createTurtleEggModel
(int p_239865_1_, String p_239865_2_, ModelTextures p_239865_3_) private ResourceLocation
createTurtleEggModel
(Integer p_239912_1_, Integer p_239912_2_) private void
private static IFinishedBlockState
createWall
(Block p_239970_0_, ResourceLocation p_239970_1_, ResourceLocation p_239970_2_, ResourceLocation p_239970_3_) private void
createWeightedPressurePlate
(Block p_239999_1_, Block p_239999_2_) private void
createWoolBlocks
(Block p_239976_1_, Block p_239976_2_) private void
delegateItemModel
(Block p_239957_1_, ResourceLocation p_239957_2_) private void
delegateItemModel
(Item p_239867_1_, ResourceLocation p_239867_2_) family
(Block p_239884_1_, TexturedModel p_239884_2_) family
(Block p_239967_1_, TexturedModel.ISupplier p_239967_2_) family
(ModelTextures p_239905_1_) void
run()
private void
skipAutoItemBlock
(Block p_239869_1_) woodProvider
(Block p_240009_1_) private static List<BlockModelDefinition>
wrapModels
(List<ResourceLocation> p_239914_0_, UnaryOperator<BlockModelDefinition> p_239914_1_)
-
Field Details
-
blockStateOutput
-
modelOutput
-
skippedAutoModelsOutput
-
-
Constructor Details
-
BlockModelProvider
public BlockModelProvider(Consumer<IFinishedBlockState> p_i232514_1_, BiConsumer<ResourceLocation, Supplier<com.google.gson.JsonElement>> p_i232514_2_, Consumer<Item> p_i232514_3_)
-
-
Method Details
-
skipAutoItemBlock
-
delegateItemModel
-
delegateItemModel
-
createSimpleFlatItemModel
-
createSimpleFlatItemModel
-
createSimpleFlatItemModel
-
createHorizontalFacingDispatch
-
createHorizontalFacingDispatchAlt
-
createTorchHorizontalDispatch
-
createFacingDispatch
-
createRotatedVariant
private static FinishedVariantBlockState createRotatedVariant(Block p_239968_0_, ResourceLocation p_239968_1_) -
createRotatedVariants
-
createRotatedVariant
private static FinishedVariantBlockState createRotatedVariant(Block p_239979_0_, ResourceLocation p_239979_1_, ResourceLocation p_239979_2_) -
createBooleanModelDispatch
private static BlockStateVariantBuilder createBooleanModelDispatch(BooleanProperty p_239894_0_, ResourceLocation p_239894_1_, ResourceLocation p_239894_2_) -
createRotatedMirroredVariantBlock
-
createRotatedVariantBlock
-
createButton
private static IFinishedBlockState createButton(Block p_239987_0_, ResourceLocation p_239987_1_, ResourceLocation p_239987_2_) -
configureDoorHalf
private static BlockStateVariantBuilder.Four<Direction,DoubleBlockHalf, configureDoorHalfDoorHingeSide, Boolean> (BlockStateVariantBuilder.Four<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> p_239903_0_, DoubleBlockHalf p_239903_1_, ResourceLocation p_239903_2_, ResourceLocation p_239903_3_) -
createDoor
private static IFinishedBlockState createDoor(Block p_239943_0_, ResourceLocation p_239943_1_, ResourceLocation p_239943_2_, ResourceLocation p_239943_3_, ResourceLocation p_239943_4_) -
createFence
private static IFinishedBlockState createFence(Block p_239994_0_, ResourceLocation p_239994_1_, ResourceLocation p_239994_2_) -
createWall
private static IFinishedBlockState createWall(Block p_239970_0_, ResourceLocation p_239970_1_, ResourceLocation p_239970_2_, ResourceLocation p_239970_3_) -
createFenceGate
private static IFinishedBlockState createFenceGate(Block p_239960_0_, ResourceLocation p_239960_1_, ResourceLocation p_239960_2_, ResourceLocation p_239960_3_, ResourceLocation p_239960_4_) -
createStairs
private static IFinishedBlockState createStairs(Block p_239980_0_, ResourceLocation p_239980_1_, ResourceLocation p_239980_2_, ResourceLocation p_239980_3_) -
createOrientableTrapdoor
private static IFinishedBlockState createOrientableTrapdoor(Block p_239988_0_, ResourceLocation p_239988_1_, ResourceLocation p_239988_2_, ResourceLocation p_239988_3_) -
createTrapdoor
private static IFinishedBlockState createTrapdoor(Block p_239995_0_, ResourceLocation p_239995_1_, ResourceLocation p_239995_2_, ResourceLocation p_239995_3_) -
createSimpleBlock
private static FinishedVariantBlockState createSimpleBlock(Block p_239978_0_, ResourceLocation p_239978_1_) -
createRotatedPillar
-
createAxisAlignedPillarBlock
private static IFinishedBlockState createAxisAlignedPillarBlock(Block p_239986_0_, ResourceLocation p_239986_1_) -
createAxisAlignedPillarBlockCustomModel
private void createAxisAlignedPillarBlockCustomModel(Block p_243685_1_, ResourceLocation p_243685_2_) -
createAxisAlignedPillarBlock
-
createHorizontallyRotatedBlock
-
createRotatedPillarWithHorizontalVariant
private static IFinishedBlockState createRotatedPillarWithHorizontalVariant(Block p_240000_0_, ResourceLocation p_240000_1_, ResourceLocation p_240000_2_) -
createRotatedPillarWithHorizontalVariant
private void createRotatedPillarWithHorizontalVariant(Block p_239883_1_, TexturedModel.ISupplier p_239883_2_, TexturedModel.ISupplier p_239883_3_) -
createSuffixedVariant
private ResourceLocation createSuffixedVariant(Block p_239886_1_, String p_239886_2_, ModelsUtil p_239886_3_, Function<ResourceLocation, ModelTextures> p_239886_4_) -
createPressurePlate
private static IFinishedBlockState createPressurePlate(Block p_240006_0_, ResourceLocation p_240006_1_, ResourceLocation p_240006_2_) -
createSlab
private static IFinishedBlockState createSlab(Block p_240001_0_, ResourceLocation p_240001_1_, ResourceLocation p_240001_2_, ResourceLocation p_240001_3_) -
createTrivialCube
-
createTrivialBlock
-
createTrivialBlock
private void createTrivialBlock(Block p_239880_1_, ModelTextures p_239880_2_, ModelsUtil p_239880_3_) -
family
private BlockModelProvider.BlockTextureCombiner family(Block p_239884_1_, TexturedModel p_239884_2_) -
family
private BlockModelProvider.BlockTextureCombiner family(Block p_239967_1_, TexturedModel.ISupplier p_239967_2_) -
family
-
family
-
createDoor
-
createOrientableTrapdoor
-
createTrapdoor
-
woodProvider
-
createNonTemplateModelBlock
-
createNonTemplateModelBlock
-
createCrossBlockWithDefaultItem
private void createCrossBlockWithDefaultItem(Block p_239877_1_, BlockModelProvider.TintMode p_239877_2_) -
createCrossBlockWithDefaultItem
private void createCrossBlockWithDefaultItem(Block p_239878_1_, BlockModelProvider.TintMode p_239878_2_, ModelTextures p_239878_3_) -
createCrossBlock
-
createCrossBlock
private void createCrossBlock(Block p_239938_1_, BlockModelProvider.TintMode p_239938_2_, ModelTextures p_239938_3_) -
createPlant
private void createPlant(Block p_239874_1_, Block p_239874_2_, BlockModelProvider.TintMode p_239874_3_) -
createCoralFans
-
createStems
-
createCoral
-
createDoublePlant
-
createSunflower
private void createSunflower() -
createTallSeagrass
private void createTallSeagrass() -
createDoubleBlock
private void createDoubleBlock(Block p_240011_1_, ResourceLocation p_240011_2_, ResourceLocation p_240011_3_) -
createPassiveRail
-
createActiveRail
-
blockEntityModels
private BlockModelProvider.BreakParticleHelper blockEntityModels(ResourceLocation p_239916_1_, Block p_239916_2_) -
blockEntityModels
private BlockModelProvider.BreakParticleHelper blockEntityModels(Block p_239966_1_, Block p_239966_2_) -
createAirLikeBlock
-
createAirLikeBlock
-
createWoolBlocks
-
createColoredBlockWithRandomRotations
private void createColoredBlockWithRandomRotations(TexturedModel.ISupplier p_239907_1_, Block... p_239907_2_) -
createColoredBlockWithStateRotations
private void createColoredBlockWithStateRotations(TexturedModel.ISupplier p_239948_1_, Block... p_239948_2_) -
createGlassBlocks
-
createCommandBlock
-
createAnvil
-
createBambooModels
-
createBamboo
private void createBamboo() -
createColumnWithFacing
-
createBarrel
private void createBarrel() -
createEmptyOrFullDispatch
private static <T extends Comparable<T>> BlockStateVariantBuilder createEmptyOrFullDispatch(Property<T> p_239895_0_, T p_239895_1_, ResourceLocation p_239895_2_, ResourceLocation p_239895_3_) -
createBeeNest
-
createCropBlock
-
createBell
private void createBell() -
createGrindstone
private void createGrindstone() -
createFurnace
-
createCampfires
-
createBookshelf
private void createBookshelf() -
createRedstoneWire
private void createRedstoneWire() -
createComparator
private void createComparator() -
createSmoothStoneSlab
private void createSmoothStoneSlab() -
createBrewingStand
private void createBrewingStand() -
createMushroomBlock
-
createCakeBlock
private void createCakeBlock() -
createCartographyTable
private void createCartographyTable() -
createSmithingTable
private void createSmithingTable() -
createCraftingTableLike
private void createCraftingTableLike(Block p_239875_1_, Block p_239875_2_, BiFunction<Block, Block, ModelTextures> p_239875_3_) -
createPumpkins
private void createPumpkins() -
createPumpkinVariant
-
createCauldron
private void createCauldron() -
createChiseledSandsone
-
createChorusFlower
private void createChorusFlower() -
createDispenserBlock
-
createEndPortalFrame
private void createEndPortalFrame() -
createChorusPlant
private void createChorusPlant() -
createComposter
private void createComposter() -
createNyliumBlock
-
createDaylightDetector
private void createDaylightDetector() -
createRotatableColumn
-
createFarmland
private void createFarmland() -
createFloorFireModels
-
createSideFireModels
-
createTopFireModels
-
wrapModels
private static List<BlockModelDefinition> wrapModels(List<ResourceLocation> p_239914_0_, UnaryOperator<BlockModelDefinition> p_239914_1_) -
createFire
private void createFire() -
createSoulFire
private void createSoulFire() -
createLantern
-
createFrostedIce
private void createFrostedIce() -
createGrassBlocks
private void createGrassBlocks() -
createGrassLikeBlock
private void createGrassLikeBlock(Block p_239889_1_, ResourceLocation p_239889_2_, BlockModelDefinition p_239889_3_) -
createCocoa
private void createCocoa() -
createGrassPath
private void createGrassPath() -
createWeightedPressurePlate
-
createHopper
private void createHopper() -
copyModel
-
createIronBars
private void createIronBars() -
createNonTemplateHorizontalBlock
-
createLever
private void createLever() -
createLilyPad
private void createLilyPad() -
createNetherPortalBlock
private void createNetherPortalBlock() -
createNetherrack
private void createNetherrack() -
createObserver
private void createObserver() -
createPistons
private void createPistons() -
createPistonVariant
private void createPistonVariant(Block p_239890_1_, ResourceLocation p_239890_2_, ModelTextures p_239890_3_) -
createPistonHeads
private void createPistonHeads() -
createScaffolding
private void createScaffolding() -
createRedstoneLamp
private void createRedstoneLamp() -
createNormalTorch
-
createRedstoneTorch
private void createRedstoneTorch() -
createRepeater
private void createRepeater() -
createSeaPickle
private void createSeaPickle() -
createSnowBlocks
private void createSnowBlocks() -
createStonecutter
private void createStonecutter() -
createStructureBlock
private void createStructureBlock() -
createSweetBerryBush
private void createSweetBerryBush() -
createTripwire
private void createTripwire() -
createTripwireHook
private void createTripwireHook() -
createTurtleEggModel
private ResourceLocation createTurtleEggModel(int p_239865_1_, String p_239865_2_, ModelTextures p_239865_3_) -
createTurtleEggModel
-
createTurtleEgg
private void createTurtleEgg() -
createVine
private void createVine() -
createMagmaBlock
private void createMagmaBlock() -
createShulkerBox
-
createGrowingPlant
private void createGrowingPlant(Block p_239936_1_, Block p_239936_2_, BlockModelProvider.TintMode p_239936_3_) -
createBedItem
-
createInfestedStone
private void createInfestedStone() -
createNetherRoots
-
createRespawnAnchor
private void createRespawnAnchor() -
applyRotation
private BlockModelDefinition applyRotation(JigsawOrientation p_239898_1_, BlockModelDefinition p_239898_2_) -
createJigsaw
private void createJigsaw() -
run
public void run()
-