Package net.minecraft.data
Class BlockModelProvider
- java.lang.Object
-
- net.minecraft.data.BlockModelProvider
-
public class BlockModelProvider extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
BlockModelProvider.BlockTextureCombiner
(package private) class
BlockModelProvider.BreakParticleHelper
(package private) class
BlockModelProvider.LogsVariantHelper
(package private) static class
BlockModelProvider.TintMode
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Consumer<IFinishedBlockState>
blockStateOutput
private java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>>
modelOutput
private java.util.function.Consumer<Item>
skippedAutoModelsOutput
-
Constructor Summary
Constructors Constructor Description BlockModelProvider(java.util.function.Consumer<IFinishedBlockState> p_i232514_1_, java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> p_i232514_2_, java.util.function.Consumer<Item> p_i232514_3_)
-
Method Summary
-
-
-
Field Detail
-
blockStateOutput
private final java.util.function.Consumer<IFinishedBlockState> blockStateOutput
-
modelOutput
private final java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> modelOutput
-
skippedAutoModelsOutput
private final java.util.function.Consumer<Item> skippedAutoModelsOutput
-
-
Constructor Detail
-
BlockModelProvider
public BlockModelProvider(java.util.function.Consumer<IFinishedBlockState> p_i232514_1_, java.util.function.BiConsumer<ResourceLocation,java.util.function.Supplier<com.google.gson.JsonElement>> p_i232514_2_, java.util.function.Consumer<Item> p_i232514_3_)
-
-
Method Detail
-
skipAutoItemBlock
private void skipAutoItemBlock(Block p_239869_1_)
-
delegateItemModel
private void delegateItemModel(Block p_239957_1_, ResourceLocation p_239957_2_)
-
delegateItemModel
private void delegateItemModel(Item p_239867_1_, ResourceLocation p_239867_2_)
-
createSimpleFlatItemModel
private void createSimpleFlatItemModel(Item p_239866_1_)
-
createSimpleFlatItemModel
private void createSimpleFlatItemModel(Block p_239934_1_)
-
createSimpleFlatItemModel
private void createSimpleFlatItemModel(Block p_239885_1_, java.lang.String p_239885_2_)
-
createHorizontalFacingDispatch
private static BlockStateVariantBuilder createHorizontalFacingDispatch()
-
createHorizontalFacingDispatchAlt
private static BlockStateVariantBuilder createHorizontalFacingDispatchAlt()
-
createTorchHorizontalDispatch
private static BlockStateVariantBuilder createTorchHorizontalDispatch()
-
createFacingDispatch
private static BlockStateVariantBuilder createFacingDispatch()
-
createRotatedVariant
private static FinishedVariantBlockState createRotatedVariant(Block p_239968_0_, ResourceLocation p_239968_1_)
-
createRotatedVariants
private static BlockModelDefinition[] createRotatedVariants(ResourceLocation p_239915_0_)
-
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
private void createRotatedMirroredVariantBlock(Block p_239953_1_)
-
createRotatedVariantBlock
private void createRotatedVariantBlock(Block p_239965_1_)
-
createButton
private static IFinishedBlockState createButton(Block p_239987_0_, ResourceLocation p_239987_1_, ResourceLocation p_239987_2_)
-
configureDoorHalf
private static BlockStateVariantBuilder.Four<Direction,DoubleBlockHalf,DoorHingeSide,java.lang.Boolean> configureDoorHalf(BlockStateVariantBuilder.Four<Direction,DoubleBlockHalf,DoorHingeSide,java.lang.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
private static BlockStateVariantBuilder 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
private void createAxisAlignedPillarBlock(Block p_239882_1_, TexturedModel.ISupplier p_239882_2_)
-
createHorizontallyRotatedBlock
private void createHorizontallyRotatedBlock(Block p_239939_1_, TexturedModel.ISupplier p_239939_2_)
-
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_, java.lang.String p_239886_2_, ModelsUtil p_239886_3_, java.util.function.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
private void createTrivialCube(Block p_239975_1_)
-
createTrivialBlock
private void createTrivialBlock(Block p_239956_1_, TexturedModel.ISupplier p_239956_2_)
-
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
private BlockModelProvider.BlockTextureCombiner family(Block p_239984_1_)
-
family
private BlockModelProvider.BlockTextureCombiner family(ModelTextures p_239905_1_)
-
createDoor
private void createDoor(Block p_239991_1_)
-
createOrientableTrapdoor
private void createOrientableTrapdoor(Block p_239998_1_)
-
createTrapdoor
private void createTrapdoor(Block p_240004_1_)
-
woodProvider
private BlockModelProvider.LogsVariantHelper woodProvider(Block p_240009_1_)
-
createNonTemplateModelBlock
private void createNonTemplateModelBlock(Block p_240014_1_)
-
createNonTemplateModelBlock
private void createNonTemplateModelBlock(Block p_239872_1_, Block p_239872_2_)
-
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
private void createCrossBlock(Block p_239937_1_, BlockModelProvider.TintMode p_239937_2_)
-
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_)
-
createCoral
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_)
-
createDoublePlant
private void createDoublePlant(Block p_239955_1_, BlockModelProvider.TintMode p_239955_2_)
-
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
private void createPassiveRail(Block p_240018_1_)
-
createActiveRail
private void createActiveRail(Block p_240021_1_)
-
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
private void createAirLikeBlock(Block p_239993_1_, ResourceLocation p_239993_2_)
-
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_)
-
createCommandBlock
private void createCommandBlock(Block p_240023_1_)
-
createAnvil
private void createAnvil(Block p_240025_1_)
-
createBambooModels
private java.util.List<BlockModelDefinition> createBambooModels(int p_239864_1_)
-
createBamboo
private void createBamboo()
-
createColumnWithFacing
private BlockStateVariantBuilder createColumnWithFacing()
-
createBarrel
private void createBarrel()
-
createEmptyOrFullDispatch
private static <T extends java.lang.Comparable<T>> BlockStateVariantBuilder createEmptyOrFullDispatch(Property<T> p_239895_0_, T p_239895_1_, ResourceLocation p_239895_2_, ResourceLocation p_239895_3_)
-
createBeeNest
private void createBeeNest(Block p_239887_1_, java.util.function.Function<Block,ModelTextures> p_239887_2_)
-
createCropBlock
private void createCropBlock(Block p_239876_1_, Property<java.lang.Integer> p_239876_2_, int... p_239876_3_)
-
createBell
private void createBell()
-
createGrindstone
private void createGrindstone()
-
createFurnace
private void createFurnace(Block p_239977_1_, TexturedModel.ISupplier p_239977_2_)
-
createCampfires
private void createCampfires(Block... p_239921_1_)
-
createBookshelf
private void createBookshelf()
-
createRedstoneWire
private void createRedstoneWire()
-
createComparator
private void createComparator()
-
createSmoothStoneSlab
private void createSmoothStoneSlab()
-
createBrewingStand
private void createBrewingStand()
-
createMushroomBlock
private void createMushroomBlock(Block p_240027_1_)
-
createCakeBlock
private void createCakeBlock()
-
createCartographyTable
private void createCartographyTable()
-
createSmithingTable
private void createSmithingTable()
-
createCraftingTableLike
private void createCraftingTableLike(Block p_239875_1_, Block p_239875_2_, java.util.function.BiFunction<Block,Block,ModelTextures> p_239875_3_)
-
createPumpkins
private void createPumpkins()
-
createPumpkinVariant
private void createPumpkinVariant(Block p_239879_1_, ModelTextures p_239879_2_)
-
createCauldron
private void createCauldron()
-
createChorusFlower
private void createChorusFlower()
-
createDispenserBlock
private void createDispenserBlock(Block p_240029_1_)
-
createEndPortalFrame
private void createEndPortalFrame()
-
createChorusPlant
private void createChorusPlant()
-
createComposter
private void createComposter()
-
createNyliumBlock
private void createNyliumBlock(Block p_240031_1_)
-
createDaylightDetector
private void createDaylightDetector()
-
createRotatableColumn
private void createRotatableColumn(Block p_239839_1_)
-
createFarmland
private void createFarmland()
-
createFloorFireModels
private java.util.List<ResourceLocation> createFloorFireModels(Block p_240033_1_)
-
createSideFireModels
private java.util.List<ResourceLocation> createSideFireModels(Block p_240035_1_)
-
createTopFireModels
private java.util.List<ResourceLocation> createTopFireModels(Block p_240037_1_)
-
wrapModels
private static java.util.List<BlockModelDefinition> wrapModels(java.util.List<ResourceLocation> p_239914_0_, java.util.function.UnaryOperator<BlockModelDefinition> p_239914_1_)
-
createFire
private void createFire()
-
createSoulFire
private void createSoulFire()
-
createLantern
private void createLantern(Block p_240039_1_)
-
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
private void createWeightedPressurePlate(Block p_239999_1_, Block p_239999_2_)
-
createHopper
private void createHopper()
-
createIronBars
private void createIronBars()
-
createNonTemplateHorizontalBlock
private void createNonTemplateHorizontalBlock(Block p_240041_1_)
-
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()
-
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_, java.lang.String p_239865_2_, ModelTextures p_239865_3_)
-
createTurtleEggModel
private ResourceLocation createTurtleEggModel(java.lang.Integer p_239912_1_, java.lang.Integer p_239912_2_)
-
createTurtleEgg
private void createTurtleEgg()
-
createVine
private void createVine()
-
createMagmaBlock
private void createMagmaBlock()
-
createShulkerBox
private void createShulkerBox(Block p_240043_1_)
-
createGrowingPlant
private void createGrowingPlant(Block p_239936_1_, Block p_239936_2_, BlockModelProvider.TintMode p_239936_3_)
-
createInfestedStone
private void createInfestedStone()
-
createRespawnAnchor
private void createRespawnAnchor()
-
applyRotation
private BlockModelDefinition applyRotation(JigsawOrientation p_239898_1_, BlockModelDefinition p_239898_2_)
-
createJigsaw
private void createJigsaw()
-
run
public void run()
-
-