Class StateIngredientBlock

java.lang.Object
at.petrak.hexcasting.common.recipe.ingredient.StateIngredientBlock
All Implemented Interfaces:
StateIngredient, Predicate<net.minecraft.world.level.block.state.BlockState>

public class StateIngredientBlock extends Object implements StateIngredient
  • Constructor Details

    • StateIngredientBlock

      public StateIngredientBlock(net.minecraft.world.level.block.Block block)
  • Method Details

    • test

      public boolean test(net.minecraft.world.level.block.state.BlockState blockState)
      Specified by:
      test in interface Predicate<net.minecraft.world.level.block.state.BlockState>
      Specified by:
      test in interface StateIngredient
    • pick

      public net.minecraft.world.level.block.state.BlockState pick(Random random)
      Specified by:
      pick in interface StateIngredient
    • serialize

      public com.google.gson.JsonObject serialize()
      Specified by:
      serialize in interface StateIngredient
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      write in interface StateIngredient
    • getDisplayedStacks

      public List<net.minecraft.world.item.ItemStack> getDisplayedStacks()
      Specified by:
      getDisplayedStacks in interface StateIngredient
    • getDisplayed

      public List<net.minecraft.world.level.block.state.BlockState> getDisplayed()
      Specified by:
      getDisplayed in interface StateIngredient
    • getBlock

      public net.minecraft.world.level.block.Block getBlock()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object