Class CopperBlockSet

java.lang.Object
com.simibubi.create.foundation.block.CopperBlockSet

public class CopperBlockSet extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     
    static interface 
    CopperBlockSet.Variant<T extends net.minecraft.world.level.block.Block>
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Map<net.minecraft.world.level.block.WeatheringCopper.WeatherState,Supplier<net.minecraft.world.level.block.Block>>
     
    static final CopperBlockSet.Variant<?>[]
     
    protected final String
     
    protected final Map<CopperBlockSet.Variant<?>,com.tterrag.registrate.util.entry.BlockEntry<?>[]>
     
    protected final String
     
    protected final com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider>
     
    protected final String
     
    protected final com.tterrag.registrate.util.nullness.NonNullBiConsumer<net.minecraft.world.level.block.WeatheringCopper.WeatherState,net.minecraft.world.level.block.Block>
     
    protected final CopperBlockSet.Variant<?>[]
     
    protected static final int
     
    protected static final net.minecraft.world.level.block.WeatheringCopper.WeatherState[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants)
     
    CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe)
     
    CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe, com.tterrag.registrate.util.nullness.NonNullBiConsumer<net.minecraft.world.level.block.WeatheringCopper.WeatherState,net.minecraft.world.level.block.Block> onRegister)
     
    CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe, String generalDirectory, com.tterrag.registrate.util.nullness.NonNullBiConsumer<net.minecraft.world.level.block.WeatheringCopper.WeatherState,net.minecraft.world.level.block.Block> onRegister)
     
    CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, String generalDirectory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T extends net.minecraft.world.level.block.Block>
    com.tterrag.registrate.util.entry.BlockEntry<?>
    createEntry(com.tterrag.registrate.AbstractRegistrate<?> registrate, CopperBlockSet.Variant<T> variant, net.minecraft.world.level.block.WeatheringCopper.WeatherState state, boolean waxed)
     
    com.tterrag.registrate.util.entry.BlockEntry<?>
    get(CopperBlockSet.Variant<?> variant, net.minecraft.world.level.block.WeatheringCopper.WeatherState state, boolean waxed)
     
     
    protected int
    getIndex(net.minecraft.world.level.block.WeatheringCopper.WeatherState state, boolean waxed)
     
     
    com.tterrag.registrate.util.entry.BlockEntry<?>
     
     
    static String
    getWeatherStatePrefix(net.minecraft.world.level.block.WeatheringCopper.WeatherState state)
     
    boolean
     

    Methods inherited from class java.lang.Object

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

    • WEATHER_STATES

      protected static final net.minecraft.world.level.block.WeatheringCopper.WeatherState[] WEATHER_STATES
    • WEATHER_STATE_COUNT

      protected static final int WEATHER_STATE_COUNT
    • BASE_BLOCKS

      protected static final Map<net.minecraft.world.level.block.WeatheringCopper.WeatherState,Supplier<net.minecraft.world.level.block.Block>> BASE_BLOCKS
    • DEFAULT_VARIANTS

      public static final CopperBlockSet.Variant<?>[] DEFAULT_VARIANTS
    • name

      protected final String name
    • generalDirectory

      protected final String generalDirectory
    • variants

      protected final CopperBlockSet.Variant<?>[] variants
    • entries

      protected final Map<CopperBlockSet.Variant<?>,com.tterrag.registrate.util.entry.BlockEntry<?>[]> entries
    • mainBlockRecipe

      protected final com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe
    • endTextureName

      protected final String endTextureName
    • onRegister

      protected final com.tterrag.registrate.util.nullness.NonNullBiConsumer<net.minecraft.world.level.block.WeatheringCopper.WeatherState,net.minecraft.world.level.block.Block> onRegister
  • Constructor Details

    • CopperBlockSet

      public CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants)
    • CopperBlockSet

      public CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, String generalDirectory)
    • CopperBlockSet

      public CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe)
    • CopperBlockSet

      public CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe, com.tterrag.registrate.util.nullness.NonNullBiConsumer<net.minecraft.world.level.block.WeatheringCopper.WeatherState,net.minecraft.world.level.block.Block> onRegister)
    • CopperBlockSet

      public CopperBlockSet(com.tterrag.registrate.AbstractRegistrate<?> registrate, String name, String endTextureName, CopperBlockSet.Variant<?>[] variants, com.tterrag.registrate.util.nullness.NonNullBiConsumer<com.tterrag.registrate.providers.DataGenContext<net.minecraft.world.level.block.Block,?>,com.tterrag.registrate.providers.RegistrateRecipeProvider> mainBlockRecipe, String generalDirectory, com.tterrag.registrate.util.nullness.NonNullBiConsumer<net.minecraft.world.level.block.WeatheringCopper.WeatherState,net.minecraft.world.level.block.Block> onRegister)
  • Method Details

    • createEntry

      protected <T extends net.minecraft.world.level.block.Block> com.tterrag.registrate.util.entry.BlockEntry<?> createEntry(com.tterrag.registrate.AbstractRegistrate<?> registrate, CopperBlockSet.Variant<T> variant, net.minecraft.world.level.block.WeatheringCopper.WeatherState state, boolean waxed)
    • getIndex

      protected int getIndex(net.minecraft.world.level.block.WeatheringCopper.WeatherState state, boolean waxed)
    • getName

      public String getName()
    • getEndTextureName

      public String getEndTextureName()
    • getVariants

      public CopperBlockSet.Variant<?>[] getVariants()
    • hasVariant

      public boolean hasVariant(CopperBlockSet.Variant<?> variant)
    • get

      public com.tterrag.registrate.util.entry.BlockEntry<?> get(CopperBlockSet.Variant<?> variant, net.minecraft.world.level.block.WeatheringCopper.WeatherState state, boolean waxed)
    • getStandard

      public com.tterrag.registrate.util.entry.BlockEntry<?> getStandard()
    • getWeatherStatePrefix

      public static String getWeatherStatePrefix(net.minecraft.world.level.block.WeatheringCopper.WeatherState state)