Class BlockFamily

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

public class BlockFamily extends Object
  • Field Details

    • baseBlock

      private final Block baseBlock
    • variants

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

      boolean generateModel
    • generateRecipe

      boolean generateRecipe
    • recipeGroupPrefix

      @Nullable String recipeGroupPrefix
    • recipeUnlockedBy

      @Nullable String recipeUnlockedBy
  • Constructor Details

    • BlockFamily

      BlockFamily(Block p_175950_)
  • Method Details

    • getBaseBlock

      public Block getBaseBlock()
    • getVariants

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

      public Block get(BlockFamily.Variant p_175953_)
    • shouldGenerateModel

      public boolean shouldGenerateModel()
    • shouldGenerateRecipe

      public boolean shouldGenerateRecipe()
    • getRecipeGroupPrefix

      public Optional<String> getRecipeGroupPrefix()
    • getRecipeUnlockedBy

      public Optional<String> getRecipeUnlockedBy()