| Modifier and Type | Method and Description |
|---|---|
Identifier |
getIdentifier(int runtimeId) |
default ItemStack |
getItem(BlockState state) |
ItemStack |
getItem(BlockState state,
int amount) |
default ItemStack |
getItem(ItemType type) |
ItemStack |
getItem(ItemType type,
int amount,
Object... metadata) |
com.google.common.collect.ImmutableList<Identifier> |
getItems() |
void |
register(ItemType type,
ItemBehavior behavior,
Identifier... identifiers) |
void register(ItemType type, ItemBehavior behavior, Identifier... identifiers) throws RegistryException
RegistryExceptiondefault ItemStack getItem(BlockState state) throws RegistryException
RegistryExceptionItemStack getItem(BlockState state, int amount) throws RegistryException
RegistryExceptiondefault ItemStack getItem(ItemType type) throws RegistryException
RegistryExceptionItemStack getItem(ItemType type, int amount, Object... metadata) throws RegistryException
RegistryExceptionIdentifier getIdentifier(int runtimeId) throws RegistryException
RegistryExceptioncom.google.common.collect.ImmutableList<Identifier> getItems()
Copyright © 2021. All rights reserved.