public static interface GameDictionary.Entry
| Modifier and Type | Method and Description |
|---|---|
ItemStackSnapshot |
getTemplate()
Returns an item stack snapshot for plugins to inspect this entry.
|
ItemType |
getType()
Returns the type of item contained by this entry.
|
boolean |
isSpecific()
Returns whether this entry checks against the item type and extra
data associated with the stack.
|
boolean |
matches(ItemStack stack)
Tests whether the provided item stack matches this entry's
specifications.
|
ItemType getType()
boolean matches(ItemStack stack)
stack - The item stack to testtrue if the stack matches this entryboolean isSpecific()
true, any
ItemStack whose ItemType and manipulators match
those of the template will match this entry; however, not all manipulators
present in the template are required to match those in the item
stack to cause them to match. If this returns false, any
item stack whose ItemType matches that of the entry will
match this entry.true if the entry checks extra data on the stackItemStackSnapshot getTemplate()