Interface StateIngredient

All Superinterfaces:
Predicate<net.minecraft.world.level.block.state.BlockState>
All Known Implementing Classes:
StateIngredientBlock, StateIngredientBlocks, StateIngredientBlockState, StateIngredientTag, StateIngredientTagExcluding

public interface StateIngredient extends Predicate<net.minecraft.world.level.block.state.BlockState>
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<net.minecraft.network.chat.Component>
    A description tooltip to display in areas like JEI recipes.
    List<net.minecraft.world.level.block.state.BlockState>
     
    List<net.minecraft.world.item.ItemStack>
     
    net.minecraft.world.level.block.state.BlockState
    pick(Random random)
     
    com.google.gson.JsonObject
     
    boolean
    test(net.minecraft.world.level.block.state.BlockState state)
     
    void
    write(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • test

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

      net.minecraft.world.level.block.state.BlockState pick(Random random)
    • serialize

      com.google.gson.JsonObject serialize()
    • write

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

      List<net.minecraft.world.item.ItemStack> getDisplayedStacks()
    • descriptionTooltip

      default List<net.minecraft.network.chat.Component> descriptionTooltip()
      A description tooltip to display in areas like JEI recipes.
    • getDisplayed

      List<net.minecraft.world.level.block.state.BlockState> getDisplayed()