Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGlobalKey()
Get the global key of this key instance.
|
java.lang.String |
getSubKey()
Get the sub key of this key instance.
|
static Key |
of(org.bukkit.block.Block block)
Get the key of a block.
|
static Key |
of(org.bukkit.block.BlockState blockState)
Get the key of a block-state.
|
static Key |
of(org.bukkit.entity.Entity entity)
Get the key of an entity.
|
static Key |
of(org.bukkit.entity.EntityType entityType)
Get the key of an entity type.
|
static Key |
of(org.bukkit.inventory.ItemStack itemStack)
Get the key of an item-stack.
|
static Key |
of(org.bukkit.Material material,
short data)
Get the key of a material and data.
|
static Key |
of(java.lang.String key)
Get the key of a string.
|
static Key |
of(java.lang.String globalKey,
java.lang.String subKey)
Get the key of a global-key and a sub-key.
|
static Key of(org.bukkit.entity.EntityType entityType)
entityType
- The entity type to check.static Key of(org.bukkit.entity.Entity entity)
entity
- The entity to check.static Key of(org.bukkit.block.Block block)
block
- The block to check.static Key of(org.bukkit.block.BlockState blockState)
blockState
- The block-state to check.static Key of(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item-stack to check.static Key of(org.bukkit.Material material, short data)
material
- The material to check.data
- The data to check.static Key of(java.lang.String globalKey, java.lang.String subKey)
globalKey
- The global keysubKey
- The sub keystatic Key of(java.lang.String key)
key
- The string to check.java.lang.String getGlobalKey()
java.lang.String getSubKey()