public class ItemRegistry<I,S extends AItemStack<I,S>>
extends java.lang.Object
| Constructor and Description |
|---|
ItemRegistry(java.util.function.BiFunction<ItemRegistry<I,S>,I,S> createItemStack) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<I> |
byType(ItemType type) |
S |
create(I item) |
S |
create(I item,
int count) |
S |
create(I item,
int count,
net.lenni0451.mcstructs.nbt.tags.CompoundNbt tag) |
S |
create(I item,
int count,
int damage) |
S |
create(I item,
int count,
int damage,
net.lenni0451.mcstructs.nbt.tags.CompoundNbt tag) |
S |
empty() |
ItemMeta |
getMeta(I item) |
I |
requireByType(ItemType type) |
java.util.List<I> |
requireByType(ItemType type,
int maxCount) |