Interface BlockIngredient<T extends BlockIngredient<T>>

All Known Implementing Classes:
BlockIngredient.BlockTagIngredient, BlockIngredient.ImpossibleBlockIngredient, BlockIngredient.IntersectionBlockIngredient, BlockIngredient.SetBlockIngredient, BlockIngredient.SingleBlockIngredient, BlockIngredient.UnionBlockIngredient

public interface BlockIngredient<T extends BlockIngredient<T>>
  • Field Details

  • Method Details

    • getType

    • isValid

      boolean isValid(net.minecraft.world.level.block.state.BlockState state)
    • getDisplayedItemStacks

      net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDisplayedItemStacks()
      Returns:
      An empty List if there is not a reasonably low number of possible Item Stacks
    • write

      void write(net.minecraft.network.FriendlyByteBuf buffer)
    • registerType

      static void registerType(BlockIngredient.BlockIngredientType<?> type)
    • write

      static void write(BlockIngredient<?> ingredient, net.minecraft.network.FriendlyByteBuf buffer)
    • read

      static BlockIngredient<?> read(net.minecraft.network.FriendlyByteBuf buffer)