Class ModBlockStateProvider
java.lang.Object
net.minecraftforge.client.model.generators.BlockStateProvider
net.minheur.mhm_bitsnbobs.datagen.ModBlockStateProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
public class ModBlockStateProvider
extends net.minecraftforge.client.model.generators.BlockStateProvider
DataGen for the BlockState.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
net.minecraftforge.client.model.generators.BlockStateProvider.ConfiguredModelListNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
Fields inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
registeredBlocks, WALL_PROPSFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionModBlockStateProvider(net.minecraft.data.PackOutput output, net.minecraftforge.common.data.ExistingFileHelper exFileHelper) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidblockItem(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) private voidblockWithItem(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) private net.minecraftforge.client.model.generators.ConfiguredModel[]cornStates(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.CropBlock block, String modelName, String textureName) voidhangingSignBlock(net.minecraft.world.level.block.Block signBlock, net.minecraft.world.level.block.Block wallSignBlock, net.minecraft.resources.ResourceLocation texture) voidhangingSignBlock(net.minecraft.world.level.block.Block signBloc, net.minecraft.world.level.block.Block wallSignBloc, net.minecraftforge.client.model.generators.ModelFile sign) private net.minecraft.resources.ResourceLocationkey(net.minecraft.world.level.block.Block block) private voidleavesBlock(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) voidmakeCornCrop(net.minecraft.world.level.block.CropBlock block, String modelName, String textureName) voidmakeStrawberryCrop(net.minecraft.world.level.block.CropBlock block, String modelName, String textureName) private Stringname(net.minecraft.world.level.block.Block block) protected voidCalled method inDataGenerators.private voidsaplingBlock(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) private net.minecraftforge.client.model.generators.ConfiguredModel[]strawberryStates(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.CropBlock block, String modelName, String textureName) Methods inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
axisBlock, axisBlock, axisBlock, axisBlock, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderTypeAndFast, axisBlockWithRenderTypeAndFast, axisBlockWithRenderTypeAndFast, axisBlockWithRenderTypeAndFast, axisBlockWithRenderTypeAndFast, axisBlockWithRenderTypeAndFast, blockTexture, buttonBlock, buttonBlock, cubeAll, directionalBlock, directionalBlock, directionalBlock, directionalBlock, doorBlock, doorBlock, doorBlock, doorBlockWithRenderType, doorBlockWithRenderType, doorBlockWithRenderType, doorBlockWithRenderType, doorBlockWithRenderTypeAndFast, doorBlockWithRenderTypeAndFast, doorBlockWithRenderTypeAndFast, doorBlockWithRenderTypeAndFast, fenceBlock, fenceBlock, fenceBlockWithRenderType, fenceBlockWithRenderType, fenceBlockWithRenderType, fenceBlockWithRenderType, fenceBlockWithRenderTypeAndFast, fenceBlockWithRenderTypeAndFast, fenceBlockWithRenderTypeAndFast, fenceBlockWithRenderTypeAndFast, fenceGateBlock, fenceGateBlock, fenceGateBlock, fenceGateBlockWithRenderType, fenceGateBlockWithRenderType, fenceGateBlockWithRenderType, fenceGateBlockWithRenderType, fenceGateBlockWithRenderTypeAndFast, fenceGateBlockWithRenderTypeAndFast, fenceGateBlockWithRenderTypeAndFast, fenceGateBlockWithRenderTypeAndFast, fourWayBlock, fourWayMultipart, getMultipartBuilder, getName, getVariantBuilder, horizontalBlock, horizontalBlock, horizontalBlock, horizontalBlock, horizontalBlock, horizontalFaceBlock, horizontalFaceBlock, horizontalFaceBlock, horizontalFaceBlock, itemModels, logBlock, logBlockWithRenderType, logBlockWithRenderType, logBlockWithRenderType, logBlockWithRenderTypeAndFast, mcLoc, models, modLoc, paneBlock, paneBlock, paneBlock, paneBlockWithRenderType, paneBlockWithRenderType, paneBlockWithRenderType, paneBlockWithRenderType, paneBlockWithRenderTypeAndFast, paneBlockWithRenderTypeAndFast, paneBlockWithRenderTypeAndFast, paneBlockWithRenderTypeAndFast, pressurePlateBlock, pressurePlateBlock, run, signBlock, signBlock, simpleBlock, simpleBlock, simpleBlock, simpleBlock, simpleBlockItem, simpleBlockWithItem, slabBlock, slabBlock, slabBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, stairsBlockWithRenderTypeAndFast, trapdoorBlock, trapdoorBlock, trapdoorBlock, trapdoorBlockWithRenderType, trapdoorBlockWithRenderType, trapdoorBlockWithRenderType, trapdoorBlockWithRenderType, trapdoorBlockWithRenderTypeAndFast, trapdoorBlockWithRenderTypeAndFast, trapdoorBlockWithRenderTypeAndFast, trapdoorBlockWithRenderTypeAndFast, wallBlock, wallBlock, wallBlock, wallBlockWithRenderType, wallBlockWithRenderType, wallBlockWithRenderType, wallBlockWithRenderType, wallBlockWithRenderTypeAndFast, wallBlockWithRenderTypeAndFast, wallBlockWithRenderTypeAndFast, wallBlockWithRenderTypeAndFast
-
Constructor Details
-
ModBlockStateProvider
public ModBlockStateProvider(net.minecraft.data.PackOutput output, net.minecraftforge.common.data.ExistingFileHelper exFileHelper)
-
-
Method Details
-
registerStatesAndModels
protected void registerStatesAndModels()Called method inDataGenerators. Generate BlockStates.- Specified by:
registerStatesAndModelsin classnet.minecraftforge.client.model.generators.BlockStateProvider
-
makeStrawberryCrop
-
strawberryStates
-
makeCornCrop
-
cornStates
-
blockItem
private void blockItem(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) -
saplingBlock
private void saplingBlock(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) -
leavesBlock
private void leavesBlock(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) -
blockWithItem
private void blockWithItem(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject) -
hangingSignBlock
public void hangingSignBlock(net.minecraft.world.level.block.Block signBlock, net.minecraft.world.level.block.Block wallSignBlock, net.minecraft.resources.ResourceLocation texture) -
hangingSignBlock
public void hangingSignBlock(net.minecraft.world.level.block.Block signBloc, net.minecraft.world.level.block.Block wallSignBloc, net.minecraftforge.client.model.generators.ModelFile sign) -
name
-
key
private net.minecraft.resources.ResourceLocation key(net.minecraft.world.level.block.Block block)
-