Class CorporeaItemStackMatcher
java.lang.Object
vazkii.botania.common.impl.corporea.CorporeaItemStackMatcher
- 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 -
Constructor Summary
ConstructorsConstructorDescriptionCorporeaItemStackMatcher(net.minecraft.world.item.ItemStack match, boolean checkNBT) -
Method Summary
Modifier and TypeMethodDescriptionstatic CorporeaItemStackMatchercreateFromNBT(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.voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) Serialize to NBT data, for the Corporea Retainer's benefit.
-
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: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
-