Interface StateIngredient

All Superinterfaces:
Predicate<net.minecraft.world.level.block.state.BlockState>
All Known Implementing Classes:
AllOfExcludingStateIngredient, AnyOfStateIngredient, BlockStateIngredient, BlockTagIngredient, BlockTypeIngredient

public interface StateIngredient extends Predicate<net.minecraft.world.level.block.state.BlockState>
A basic interface for inputs and outputs for in-world blocks.
  • 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(net.minecraft.util.RandomSource random)
     
    Stream<net.minecraft.world.level.block.state.BlockState>
     
    boolean
    test(net.minecraft.world.level.block.state.BlockState state)
     

    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(net.minecraft.util.RandomSource random)
    • getType

      StateIngredientType<?> getType()
    • 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()
    • streamBlockStates

      Stream<net.minecraft.world.level.block.state.BlockState> streamBlockStates()