Class CorporeaItemStackMatcher

java.lang.Object
vazkii.botania.common.impl.corporea.CorporeaItemStackMatcher
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>, CorporeaRequestMatcher

public class CorporeaItemStackMatcher extends Object implements CorporeaRequestMatcher
  • Constructor Details

    • CorporeaItemStackMatcher

      public CorporeaItemStackMatcher(net.minecraft.world.item.ItemStack match, boolean checkNBT)
  • Method Details

    • test

      public boolean test(net.minecraft.world.item.ItemStack stack)
      Description copied from interface: CorporeaRequestMatcher
      Returns whether the given stack matches the request's criteria.
      Specified by:
      test in interface CorporeaRequestMatcher
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
    • createFromNBT

      public static CorporeaItemStackMatcher createFromNBT(net.minecraft.nbt.CompoundTag tag)
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag tag)
      Description copied from interface: CorporeaRequestMatcher
      Serialize to NBT data, for the Corporea Retainer's benefit.
      Specified by:
      writeToNBT in interface CorporeaRequestMatcher
    • getRequestName

      public net.minecraft.network.chat.Component getRequestName()
      Description copied from interface: CorporeaRequestMatcher
      Returns the pretty name of the requested item, for printing request feedback on Corporea Indexes.
      Specified by:
      getRequestName in interface CorporeaRequestMatcher