public interface CustomKeyParser
Modifier and Type | Method and Description |
---|---|
default Key |
getCustomKey(org.bukkit.entity.Entity entity)
Get a custom key for an entity.
|
default Key |
getCustomKey(org.bukkit.inventory.ItemStack itemStack,
Key def)
Get a custom key for an item-stack.
|
default Key |
getCustomKey(org.bukkit.Location location)
Get a custom key for a block.
|
boolean |
isCustomKey(Key key)
Check if a key was created by this parser.
|
@Nullable default Key getCustomKey(org.bukkit.Location location)
location
- The location of the block.@Nullable default Key getCustomKey(org.bukkit.entity.Entity entity)
entity
- The entity to check.default Key getCustomKey(org.bukkit.inventory.ItemStack itemStack, Key def)
itemStack
- The item-stack to parse.def
- The original key of the item.boolean isCustomKey(Key key)
key
- The key to check.