Class CorporeaStringMatcher
java.lang.Object
vazkii.botania.common.impl.corporea.CorporeaStringMatcher
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>,CorporeaRequestMatcher
-
Nested Class Summary
Nested classes/interfaces inherited from interface vazkii.botania.api.corporea.CorporeaRequestMatcher
CorporeaRequestMatcher.Dummy -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CorporeaStringMatchercreateFromNBT(net.minecraft.nbt.CompoundTag tag) net.minecraft.network.chat.ComponentReturns the pretty name of the requested item, for printing request feedback on Corporea Indexes.booleantest(net.minecraft.world.item.ItemStack stack) Returns whether the given stack matches the request's criteria.toString()voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) Serialize to NBT data, for the Corporea Retainer's benefit.
-
Field Details
-
WILDCARD_STRINGS
-
-
Constructor Details
-
CorporeaStringMatcher
-
-
Method Details
-
test
public boolean test(net.minecraft.world.item.ItemStack stack) Description copied from interface:CorporeaRequestMatcherReturns whether the given stack matches the request's criteria.- Specified by:
testin interfaceCorporeaRequestMatcher- Specified by:
testin interfacePredicate<net.minecraft.world.item.ItemStack>
-
createFromNBT
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag tag) Description copied from interface:CorporeaRequestMatcherSerialize to NBT data, for the Corporea Retainer's benefit.- Specified by:
writeToNBTin interfaceCorporeaRequestMatcher
-
getRequestName
public net.minecraft.network.chat.Component getRequestName()Description copied from interface:CorporeaRequestMatcherReturns the pretty name of the requested item, for printing request feedback on Corporea Indexes.- Specified by:
getRequestNamein interfaceCorporeaRequestMatcher
-
toString
-