public final class ItemTable extends Object
Modifier and Type | Method and Description |
---|---|
BlockType |
getBlock(int id)
Deprecated.
|
BlockType |
getBlock(org.bukkit.Material mat)
Returns the
BlockType for a Material , or null if not a block. |
ItemType |
getItem(int id)
Deprecated.
|
ItemType |
getItem(org.bukkit.Material mat)
Returns the
ItemType for a Material , or null if not a block. |
static ItemTable |
instance() |
boolean |
register(org.bukkit.NamespacedKey key,
ItemType type)
Register a new, non-Vanilla ItemType.
|
public static ItemTable instance()
public boolean register(org.bukkit.NamespacedKey key, ItemType type)
key
- the namespaced key of the ItemTypetype
- the ItemType to register.@Deprecated public ItemType getItem(int id)
public ItemType getItem(org.bukkit.Material mat)
ItemType
for a Material
, or null if not a block.mat
- a Material
mat
as an ItemType
@Deprecated public BlockType getBlock(int id)
Copyright © 2021. All rights reserved.