Package vazkii.botania.api.corporea
Interface CorporeaRequestMatcher
- All Superinterfaces:
Predicate<net.minecraft.world.item.ItemStack>
- All Known Implementing Classes:
CorporeaItemStackMatcher,CorporeaRequestMatcher.Dummy,CorporeaStringMatcher
An interface for a Corporea Request matcher. Accepts an ItemStack and returns whether it fulfills the request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.network.chat.ComponentReturns the pretty name of the requested item, for printing request feedback on Corporea Indexes.default booleantest(net.minecraft.world.item.ItemStack stack) Returns whether the given stack matches the request's criteria.default voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) Serialize to NBT data, for the Corporea Retainer's benefit.
-
Method Details
-
test
default boolean test(net.minecraft.world.item.ItemStack stack) Returns whether the given stack matches the request's criteria. -
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.
-