Class MultiPartAPIStateHelper

java.lang.Object
net.liukrast.multipart.datagen.MultiPartAPIStateHelper

public class MultiPartAPIStateHelper extends Object
Contains useful methods for data generation
  • Method Details

    • facingMultipartBlock

      public static void facingMultipartBlock(net.neoforged.neoforge.client.model.generators.BlockStateProvider blockStateProvider, AbstractFacingMultipartBlock block)
      Generates blockstate for a facing multipart block. Models will be read from assets/modid/models/yourblock/...
      Parameters:
      blockStateProvider - the block state provider of your mod
      block - the block
    • multiPartBlock

      public static void multiPartBlock(net.neoforged.neoforge.client.model.generators.BlockStateProvider blockStateProvider, AbstractMultipartBlock block)
      Generates blockstate for a multipart block. Models will be read from assets/modid/models/yourblock/...
      Parameters:
      blockStateProvider - the block state provider of your mod
      block - the block
    • multiPartBlock

      public static void multiPartBlock(net.neoforged.neoforge.client.model.generators.BlockStateProvider blockStateProvider, AbstractMultipartBlock block, MultiPartAPIStateHelper.PathProvider pathProvider, BiConsumer<net.minecraft.world.level.block.state.BlockState,net.neoforged.neoforge.client.model.generators.ConfiguredModel.Builder<?>> extraData)
      Generates blockstate for a multipart block.
      Parameters:
      blockStateProvider - the block state provider of your mod
      block - the block
      pathProvider - Allows choosing where your models are read based on the state and id
      extraData - Allows adding extra data based on the state