Package net.minecraft.data.models
Class BlockModelGenerators
java.lang.Object
net.minecraft.data.models.BlockModelGenerators
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) static interface
(package private) static class
(package private) class
-
Field Summary
Modifier and TypeFieldDescription(package private) Consumer<BlockStateGenerator>
(package private) Map<Block,BlockModelGenerators.BlockStateGeneratorSupplier>
(package private) BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>>
static Map<BooleanProperty,Function<ResourceLocation,Variant>>
(package private) static Map<BlockFamily.Variant,BiConsumer<BlockModelGenerators.BlockFamilyProvider,Block>>
(package private) Map<Block,TexturedModel>
-
Constructor Summary
ConstructorDescriptionBlockModelGenerators(Consumer<BlockStateGenerator> p_124481_, BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>> p_124482_, Consumer<Item> p_124483_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate Variant
applyRotation(FrontAndTop p_124636_, Variant p_124637_)
blockEntityModels(ResourceLocation p_124691_, Block p_124692_)
blockEntityModels(Block p_124826_, Block p_124827_)
private static PropertyDispatch.C4<Direction,DoubleBlockHalf,DoorHingeSide,Boolean>
configureDoorHalf(PropertyDispatch.C4<Direction,DoubleBlockHalf,DoorHingeSide,Boolean> p_124651_, DoubleBlockHalf p_124652_, ResourceLocation p_124653_, ResourceLocation p_124654_)
private void
private void
createActiveRail(Block p_124975_)
private void
createAirLikeBlock(Block p_124922_, ResourceLocation p_124923_)
private void
createAirLikeBlock(Block p_124531_, Item p_124532_)
private void
createAmethystCluster(Block p_176252_)
private void
private void
createAnvil(Block p_124981_)
private void
createAxisAlignedPillarBlock(Block p_124587_, TexturedModel.Provider p_124588_)
(package private) static BlockStateGenerator
createAxisAlignedPillarBlock(Block p_124882_, ResourceLocation p_124883_)
private void
createAxisAlignedPillarBlockCustomModel(Block p_124902_, ResourceLocation p_124903_)
private void
createAzalea(Block p_176248_)
private void
createBambooModels(int p_124512_)
private void
private void
createBedItem(Block p_124963_, Block p_124964_)
private void
createBeeNest(Block p_124584_, Function<Block,TextureMapping> p_124585_)
private void
private void
private void
private static PropertyDispatch
createBooleanModelDispatch(BooleanProperty p_124623_, ResourceLocation p_124624_, ResourceLocation p_124625_)
private void
(package private) static BlockStateGenerator
createButton(Block p_124885_, ResourceLocation p_124886_, ResourceLocation p_124887_)
private void
private void
createCampfires(Block... p_124714_)
private void
createCandleAndCandleCake(Block p_176245_, Block p_176246_)
private void
private void
private void
private void
private void
private void
private void
createColoredBlockWithRandomRotations(TexturedModel.Provider p_124686_, Block... p_124687_)
private void
createColoredBlockWithStateRotations(TexturedModel.Provider p_124778_, Block... p_124779_)
private PropertyDispatch
private void
createCommandBlock(Block p_124978_)
private void
private void
private void
createCoral(Block p_124537_, Block p_124538_, Block p_124539_, Block p_124540_, Block p_124541_, Block p_124542_, Block p_124543_, Block p_124544_)
private void
createCoralFans(Block p_124731_, Block p_124732_)
private void
createCraftingTableLike(Block p_124550_, Block p_124551_, BiFunction<Block,Block,TextureMapping> p_124552_)
private void
createCropBlock(Block p_124554_, Property<Integer> p_124555_, int... p_124556_)
private void
createCrossBlock(Block p_124738_, BlockModelGenerators.TintState p_124739_)
private void
createCrossBlock(Block p_124741_, BlockModelGenerators.TintState p_124742_, TextureMapping p_124743_)
private void
createCrossBlockWithDefaultItem(Block p_124558_, BlockModelGenerators.TintState p_124559_)
private void
createCrossBlockWithDefaultItem(Block p_124561_, BlockModelGenerators.TintState p_124562_, TextureMapping p_124563_)
private void
private void
private void
createDispenserBlock(Block p_124987_)
(package private) void
createDoor(Block p_124897_)
private static BlockStateGenerator
createDoor(Block p_124760_, ResourceLocation p_124761_, ResourceLocation p_124762_, ResourceLocation p_124763_, ResourceLocation p_124764_)
private void
createDoubleBlock(Block p_124954_, ResourceLocation p_124955_, ResourceLocation p_124956_)
private void
createDoublePlant(Block p_124792_, BlockModelGenerators.TintState p_124793_)
private static <T extends Comparable<T>>
PropertyDispatchcreateEmptyOrFullDispatch(Property<T> p_124627_, T p_124628_, ResourceLocation p_124629_, ResourceLocation p_124630_)
private void
private static PropertyDispatch
private void
(package private) static BlockStateGenerator
createFence(Block p_124905_, ResourceLocation p_124906_, ResourceLocation p_124907_)
(package private) static BlockStateGenerator
createFenceGate(Block p_124810_, ResourceLocation p_124811_, ResourceLocation p_124812_, ResourceLocation p_124813_, ResourceLocation p_124814_)
private void
private List<ResourceLocation>
createFloorFireModels(Block p_124996_)
private void
private void
createFullAndCarpetBlocks(Block p_176218_, Block p_176219_)
private void
createFurnace(Block p_124857_, TexturedModel.Provider p_124858_)
private void
createGlassBlocks(Block p_124879_, Block p_124880_)
private void
private void
createGrassLikeBlock(Block p_124600_, ResourceLocation p_124601_, Variant p_124602_)
private void
private void
createGrowingPlant(Block p_124734_, Block p_124735_, BlockModelGenerators.TintState p_124736_)
private void
private static PropertyDispatch
private static PropertyDispatch
private void
createHorizontallyRotatedBlock(Block p_124745_, TexturedModel.Provider p_124746_)
private void
private void
private void
private void
private void
createLantern(Block p_125005_)
private void
private void
private void
private void
private void
private static BlockStateGenerator
createMirroredColumnGenerator(Block p_176180_, ResourceLocation p_176181_, TextureMapping p_176182_, BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>> p_176183_)
private static BlockStateGenerator
createMirroredCubeGenerator(Block p_176110_, ResourceLocation p_176111_, TextureMapping p_176112_, BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>> p_176113_)
private void
createMultiface(Block p_176086_)
private void
createMushroomBlock(Block p_124984_)
private void
private void
private void
createNetherRoots(Block p_124971_, Block p_124972_)
private void
createNonTemplateHorizontalBlock(Block p_125008_)
private void
createNonTemplateModelBlock(Block p_124961_)
private void
createNonTemplateModelBlock(Block p_124534_, Block p_124535_)
private void
createNormalTorch(Block p_124951_, Block p_124952_)
private void
createNyliumBlock(Block p_124990_)
private void
(package private) void
createOrientableTrapdoor(Block p_124917_)
private static BlockStateGenerator
createOrientableTrapdoor(Block p_124889_, ResourceLocation p_124890_, ResourceLocation p_124891_, ResourceLocation p_124892_)
private void
createPassiveRail(Block p_124969_)
private void
private void
private void
private void
createPistonVariant(Block p_124604_, ResourceLocation p_124605_, TextureMapping p_124606_)
private void
createPlant(Block p_124546_, Block p_124547_, BlockModelGenerators.TintState p_124548_)
private void
private Variant
createPointedDripstoneVariant(Direction p_176117_, DripstoneThickness p_176118_)
private void
createPottedAzalea(Block p_176250_)
(package private) static BlockStateGenerator
createPressurePlate(Block p_124942_, ResourceLocation p_124943_, ResourceLocation p_124944_)
private void
private void
createPumpkinVariant(Block p_124565_, TextureMapping p_124566_)
private void
private void
private void
private void
private void
private void
createRotatableColumn(Block p_124993_)
private void
createRotatedMirroredVariantBlock(Block p_124787_)
private static PropertyDispatch
private void
createRotatedPillarWithHorizontalVariant(Block p_124590_, TexturedModel.Provider p_124591_, TexturedModel.Provider p_124592_)
(package private) static BlockStateGenerator
createRotatedPillarWithHorizontalVariant(Block p_124925_, ResourceLocation p_124926_, ResourceLocation p_124927_)
private static MultiVariantGenerator
createRotatedVariant(Block p_124832_, ResourceLocation p_124833_)
private static MultiVariantGenerator
createRotatedVariant(Block p_124863_, ResourceLocation p_124864_, ResourceLocation p_124865_)
private void
createRotatedVariantBlock(Block p_124824_)
private static Variant[]
createRotatedVariants(ResourceLocation p_124689_)
private void
private void
private void
private void
createShulkerBox(Block p_125011_)
private List<ResourceLocation>
createSideFireModels(Block p_124999_)
(package private) static MultiVariantGenerator
createSimpleBlock(Block p_124860_, ResourceLocation p_124861_)
(package private) void
createSimpleFlatItemModel(Item p_124518_)
private void
createSimpleFlatItemModel(Block p_124729_)
private void
createSimpleFlatItemModel(Block p_124576_, String p_124577_)
(package private) static BlockStateGenerator
createSlab(Block p_124929_, ResourceLocation p_124930_, ResourceLocation p_124931_, ResourceLocation p_124932_)
private void
private void
private void
private void
private void
(package private) static BlockStateGenerator
createStairs(Block p_124867_, ResourceLocation p_124868_, ResourceLocation p_124869_, ResourceLocation p_124870_)
private void
createStems(Block p_124789_, Block p_124790_)
private void
private void
private ResourceLocation
createSuffixedVariant(Block p_124579_, String p_124580_, ModelTemplate p_124581_, Function<ResourceLocation,TextureMapping> p_124582_)
private void
private void
private void
private List<ResourceLocation>
createTopFireModels(Block p_125002_)
private static PropertyDispatch
(package private) void
createTrapdoor(Block p_124937_)
private static BlockStateGenerator
createTrapdoor(Block p_124909_, ResourceLocation p_124910_, ResourceLocation p_124911_, ResourceLocation p_124912_)
private void
private void
private void
createTrivialBlock(Block p_124795_, TexturedModel.Provider p_124796_)
private void
createTrivialBlock(Block p_124568_, TextureMapping p_124569_, ModelTemplate p_124570_)
private void
createTrivialCube(Block p_124852_)
private void
private ResourceLocation
createTurtleEggModel(int p_124514_, String p_124515_, TextureMapping p_124516_)
private ResourceLocation
createTurtleEggModel(Integer p_124677_, Integer p_124678_)
(package private) static BlockStateGenerator
createWall(Block p_124839_, ResourceLocation p_124840_, ResourceLocation p_124841_, ResourceLocation p_124842_)
private void
createWeightedPressurePlate(Block p_124919_, Block p_124920_)
private void
delegateItemModel(Item p_124520_, ResourceLocation p_124521_)
(package private) void
delegateItemModel(Block p_124798_, ResourceLocation p_124799_)
void
run()
(package private) void
skipAutoItemBlock(Block p_124525_)
woodProvider(Block p_124949_)
wrapModels(List<ResourceLocation> p_124683_, UnaryOperator<Variant> p_124684_)
-
Field Details
-
blockStateOutput
-
modelOutput
-
skippedAutoModelsOutput
-
nonOrientableTrapdoor
-
fullBlockModelCustomGenerators
-
texturedModels
-
SHAPE_CONSUMERS
static final Map<BlockFamily.Variant,BiConsumer<BlockModelGenerators.BlockFamilyProvider,Block>> SHAPE_CONSUMERS -
MULTIFACE_GENERATOR
-
-
Constructor Details
-
BlockModelGenerators
public BlockModelGenerators(Consumer<BlockStateGenerator> p_124481_, BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>> p_124482_, Consumer<Item> p_124483_)
-
-
Method Details
-
createMirroredCubeGenerator
private static BlockStateGenerator createMirroredCubeGenerator(Block p_176110_, ResourceLocation p_176111_, TextureMapping p_176112_, BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>> p_176113_) -
createMirroredColumnGenerator
private static BlockStateGenerator createMirroredColumnGenerator(Block p_176180_, ResourceLocation p_176181_, TextureMapping p_176182_, BiConsumer<ResourceLocation,Supplier<com.google.gson.JsonElement>> p_176183_) -
skipAutoItemBlock
-
delegateItemModel
-
delegateItemModel
-
createSimpleFlatItemModel
-
createSimpleFlatItemModel
-
createSimpleFlatItemModel
-
createHorizontalFacingDispatch
-
createHorizontalFacingDispatchAlt
-
createTorchHorizontalDispatch
-
createFacingDispatch
-
createRotatedVariant
private static MultiVariantGenerator createRotatedVariant(Block p_124832_, ResourceLocation p_124833_) -
createRotatedVariants
-
createRotatedVariant
private static MultiVariantGenerator createRotatedVariant(Block p_124863_, ResourceLocation p_124864_, ResourceLocation p_124865_) -
createBooleanModelDispatch
private static PropertyDispatch createBooleanModelDispatch(BooleanProperty p_124623_, ResourceLocation p_124624_, ResourceLocation p_124625_) -
createRotatedMirroredVariantBlock
-
createRotatedVariantBlock
-
createButton
static BlockStateGenerator createButton(Block p_124885_, ResourceLocation p_124886_, ResourceLocation p_124887_) -
configureDoorHalf
private static PropertyDispatch.C4<Direction,DoubleBlockHalf,DoorHingeSide,Boolean> configureDoorHalf(PropertyDispatch.C4<Direction,DoubleBlockHalf,DoorHingeSide,Boolean> p_124651_, DoubleBlockHalf p_124652_, ResourceLocation p_124653_, ResourceLocation p_124654_) -
createDoor
private static BlockStateGenerator createDoor(Block p_124760_, ResourceLocation p_124761_, ResourceLocation p_124762_, ResourceLocation p_124763_, ResourceLocation p_124764_) -
createFence
static BlockStateGenerator createFence(Block p_124905_, ResourceLocation p_124906_, ResourceLocation p_124907_) -
createWall
static BlockStateGenerator createWall(Block p_124839_, ResourceLocation p_124840_, ResourceLocation p_124841_, ResourceLocation p_124842_) -
createFenceGate
static BlockStateGenerator createFenceGate(Block p_124810_, ResourceLocation p_124811_, ResourceLocation p_124812_, ResourceLocation p_124813_, ResourceLocation p_124814_) -
createStairs
static BlockStateGenerator createStairs(Block p_124867_, ResourceLocation p_124868_, ResourceLocation p_124869_, ResourceLocation p_124870_) -
createOrientableTrapdoor
private static BlockStateGenerator createOrientableTrapdoor(Block p_124889_, ResourceLocation p_124890_, ResourceLocation p_124891_, ResourceLocation p_124892_) -
createTrapdoor
private static BlockStateGenerator createTrapdoor(Block p_124909_, ResourceLocation p_124910_, ResourceLocation p_124911_, ResourceLocation p_124912_) -
createSimpleBlock
-
createRotatedPillar
-
createAxisAlignedPillarBlock
static BlockStateGenerator createAxisAlignedPillarBlock(Block p_124882_, ResourceLocation p_124883_) -
createAxisAlignedPillarBlockCustomModel
-
createAxisAlignedPillarBlock
-
createHorizontallyRotatedBlock
-
createRotatedPillarWithHorizontalVariant
static BlockStateGenerator createRotatedPillarWithHorizontalVariant(Block p_124925_, ResourceLocation p_124926_, ResourceLocation p_124927_) -
createRotatedPillarWithHorizontalVariant
private void createRotatedPillarWithHorizontalVariant(Block p_124590_, TexturedModel.Provider p_124591_, TexturedModel.Provider p_124592_) -
createSuffixedVariant
private ResourceLocation createSuffixedVariant(Block p_124579_, String p_124580_, ModelTemplate p_124581_, Function<ResourceLocation,TextureMapping> p_124582_) -
createPressurePlate
static BlockStateGenerator createPressurePlate(Block p_124942_, ResourceLocation p_124943_, ResourceLocation p_124944_) -
createSlab
static BlockStateGenerator createSlab(Block p_124929_, ResourceLocation p_124930_, ResourceLocation p_124931_, ResourceLocation p_124932_) -
createTrivialCube
-
createTrivialBlock
-
createTrivialBlock
private void createTrivialBlock(Block p_124568_, TextureMapping p_124569_, ModelTemplate p_124570_) -
family
-
createDoor
-
createOrientableTrapdoor
-
createTrapdoor
-
createBigDripLeafBlock
private void createBigDripLeafBlock() -
woodProvider
-
createNonTemplateModelBlock
-
createNonTemplateModelBlock
-
createCrossBlockWithDefaultItem
private void createCrossBlockWithDefaultItem(Block p_124558_, BlockModelGenerators.TintState p_124559_) -
createCrossBlockWithDefaultItem
private void createCrossBlockWithDefaultItem(Block p_124561_, BlockModelGenerators.TintState p_124562_, TextureMapping p_124563_) -
createCrossBlock
-
createCrossBlock
private void createCrossBlock(Block p_124741_, BlockModelGenerators.TintState p_124742_, TextureMapping p_124743_) -
createPlant
private void createPlant(Block p_124546_, Block p_124547_, BlockModelGenerators.TintState p_124548_) -
createCoralFans
-
createStems
-
createCoral
-
createDoublePlant
-
createSunflower
private void createSunflower() -
createTallSeagrass
private void createTallSeagrass() -
createSmallDripleaf
private void createSmallDripleaf() -
createDoubleBlock
private void createDoubleBlock(Block p_124954_, ResourceLocation p_124955_, ResourceLocation p_124956_) -
createPassiveRail
-
createActiveRail
-
blockEntityModels
private BlockModelGenerators.BlockEntityModelGenerator blockEntityModels(ResourceLocation p_124691_, Block p_124692_) -
blockEntityModels
private BlockModelGenerators.BlockEntityModelGenerator blockEntityModels(Block p_124826_, Block p_124827_) -
createAirLikeBlock
-
createAirLikeBlock
-
createFullAndCarpetBlocks
-
createColoredBlockWithRandomRotations
private void createColoredBlockWithRandomRotations(TexturedModel.Provider p_124686_, Block... p_124687_) -
createColoredBlockWithStateRotations
private void createColoredBlockWithStateRotations(TexturedModel.Provider p_124778_, Block... p_124779_) -
createGlassBlocks
-
createCommandBlock
-
createAnvil
-
createBambooModels
-
createBamboo
private void createBamboo() -
createColumnWithFacing
-
createBarrel
private void createBarrel() -
createEmptyOrFullDispatch
private static <T extends Comparable<T>> PropertyDispatch createEmptyOrFullDispatch(Property<T> p_124627_, T p_124628_, ResourceLocation p_124629_, ResourceLocation p_124630_) -
createBeeNest
-
createCropBlock
-
createBell
private void createBell() -
createGrindstone
private void createGrindstone() -
createFurnace
-
createCampfires
-
createAzalea
-
createPottedAzalea
-
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_124550_, Block p_124551_, BiFunction<Block,Block,TextureMapping> p_124552_) -
createPumpkins
private void createPumpkins() -
createPumpkinVariant
-
createCauldrons
private void createCauldrons() -
createChorusFlower
private void createChorusFlower() -
createDispenserBlock
-
createEndPortalFrame
private void createEndPortalFrame() -
createChorusPlant
private void createChorusPlant() -
createComposter
private void createComposter() -
createAmethystCluster
-
createAmethystClusters
private void createAmethystClusters() -
createPointedDripstone
private void createPointedDripstone() -
createPointedDripstoneVariant
-
createNyliumBlock
-
createDaylightDetector
private void createDaylightDetector() -
createRotatableColumn
-
createLightningRod
private void createLightningRod() -
createFarmland
private void createFarmland() -
createFloorFireModels
-
createSideFireModels
-
createTopFireModels
-
wrapModels
private static List<Variant> wrapModels(List<ResourceLocation> p_124683_, UnaryOperator<Variant> p_124684_) -
createFire
private void createFire() -
createSoulFire
private void createSoulFire() -
createLantern
-
createFrostedIce
private void createFrostedIce() -
createGrassBlocks
private void createGrassBlocks() -
createGrassLikeBlock
-
createCocoa
private void createCocoa() -
createDirtPath
private void createDirtPath() -
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_124604_, ResourceLocation p_124605_, TextureMapping p_124606_) -
createPistonHeads
private void createPistonHeads() -
createSculkSensor
private void createSculkSensor() -
createScaffolding
private void createScaffolding() -
createCaveVines
private void createCaveVines() -
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_124514_, String p_124515_, TextureMapping p_124516_) -
createTurtleEggModel
-
createTurtleEgg
private void createTurtleEgg() -
createMultiface
-
createMagmaBlock
private void createMagmaBlock() -
createShulkerBox
-
createGrowingPlant
private void createGrowingPlant(Block p_124734_, Block p_124735_, BlockModelGenerators.TintState p_124736_) -
createBedItem
-
createInfestedStone
private void createInfestedStone() -
createInfestedDeepslate
private void createInfestedDeepslate() -
createNetherRoots
-
createRespawnAnchor
private void createRespawnAnchor() -
applyRotation
-
createJigsaw
private void createJigsaw() -
createPetrifiedOakSlab
private void createPetrifiedOakSlab() -
run
public void run() -
createLightBlockItems
private void createLightBlockItems() -
createCandleAndCandleCake
-