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.ConfiguredModelList

    Nested 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_PROPS

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModBlockStateProvider(net.minecraft.data.PackOutput output, net.minecraftforge.common.data.ExistingFileHelper exFileHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    blockItem(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject)
     
    private void
    blockWithItem(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)
     
    void
    hangingSignBlock(net.minecraft.world.level.block.Block signBlock, net.minecraft.world.level.block.Block wallSignBlock, net.minecraft.resources.ResourceLocation texture)
     
    void
    hangingSignBlock(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.ResourceLocation
    key(net.minecraft.world.level.block.Block block)
     
    private void
    leavesBlock(net.minecraftforge.registries.RegistryObject<net.minecraft.world.level.block.Block> blockRegistryObject)
     
    void
    makeCornCrop(net.minecraft.world.level.block.CropBlock block, String modelName, String textureName)
     
    void
    makeStrawberryCrop(net.minecraft.world.level.block.CropBlock block, String modelName, String textureName)
     
    private String
    name(net.minecraft.world.level.block.Block block)
     
    protected void
    Called method in DataGenerators.
    private void
    saplingBlock(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModBlockStateProvider

      public ModBlockStateProvider(net.minecraft.data.PackOutput output, net.minecraftforge.common.data.ExistingFileHelper exFileHelper)
  • Method Details

    • registerStatesAndModels

      protected void registerStatesAndModels()
      Called method in DataGenerators. Generate BlockStates.
      Specified by:
      registerStatesAndModels in class net.minecraftforge.client.model.generators.BlockStateProvider
    • makeStrawberryCrop

      public void makeStrawberryCrop(net.minecraft.world.level.block.CropBlock block, String modelName, String textureName)
    • strawberryStates

      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)
    • makeCornCrop

      public void makeCornCrop(net.minecraft.world.level.block.CropBlock block, String modelName, String textureName)
    • cornStates

      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)
    • 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

      private String name(net.minecraft.world.level.block.Block block)
    • key

      private net.minecraft.resources.ResourceLocation key(net.minecraft.world.level.block.Block block)