Class BlockFamily

java.lang.Object
net.minecraft.data.BlockFamily

public class BlockFamily extends Object
  • Field Details

    • baseBlock

      private final Block baseBlock
    • variants

      private final Map<BlockFamily.Variant, Block> variants
    • generateModel

      private boolean generateModel
    • generateCraftingRecipe

      private boolean generateCraftingRecipe
    • generateStonecutterRecipe

      private boolean generateStonecutterRecipe
    • recipeGroupPrefix

      private @Nullable String recipeGroupPrefix
    • recipeUnlockedBy

      private @Nullable String recipeUnlockedBy
  • Constructor Details

    • BlockFamily

      private BlockFamily(Block baseBlock)
  • Method Details

    • getBaseBlock

      public Block getBaseBlock()
    • getVariants

      public Map<BlockFamily.Variant, Block> getVariants()
    • get

      public Block get(BlockFamily.Variant variant)
    • shouldGenerateModel

      public boolean shouldGenerateModel()
    • shouldGenerateCraftingRecipe

      public boolean shouldGenerateCraftingRecipe()
    • shouldGenerateStonecutterRecipe

      public boolean shouldGenerateStonecutterRecipe()
    • getRecipeGroupPrefix

      public Optional<String> getRecipeGroupPrefix()
    • getRecipeUnlockedBy

      public Optional<String> getRecipeUnlockedBy()