Interface CorporeaRequestMatcher

All Superinterfaces:
Predicate<net.minecraft.world.item.ItemStack>
All Known Implementing Classes:
CorporeaItemStackMatcher, CorporeaRequestMatcher.Dummy, CorporeaStringMatcher

public interface CorporeaRequestMatcher extends Predicate<net.minecraft.world.item.ItemStack>
An interface for a Corporea Request matcher. Accepts an ItemStack and returns whether it fulfills the request.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.network.chat.Component
    Returns the pretty name of the requested item, for printing request feedback on Corporea Indexes.
    default boolean
    test(net.minecraft.world.item.ItemStack stack)
    Returns whether the given stack matches the request's criteria.
    default void
    writeToNBT(net.minecraft.nbt.CompoundTag tag)
    Serialize to NBT data, for the Corporea Retainer's benefit.

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • test

      default boolean test(net.minecraft.world.item.ItemStack stack)
      Returns whether the given stack matches the request's criteria.
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
    • writeToNBT

      default void writeToNBT(net.minecraft.nbt.CompoundTag tag)
      Serialize to NBT data, for the Corporea Retainer's benefit.
    • getRequestName

      default net.minecraft.network.chat.Component getRequestName()
      Returns the pretty name of the requested item, for printing request feedback on Corporea Indexes.