public class VillagerInventory_v1_7<I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>> extends java.lang.Object implements IInventory_v1_7<I,S>
| Constructor and Description |
|---|
VillagerInventory_v1_7(net.lenni0451.mcstructs.recipes.ARecipeRegistry<I,S> recipeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
net.lenni0451.mcstructs.recipes.VillagerRecipe<I,S> |
getCurrentRecipe() |
int |
getCurrentRecipeIndex() |
net.lenni0451.mcstructs.recipes.ARecipeRegistry<I,S> |
getRecipeRegistry() |
int |
getSize() |
S |
getStack(int slotId)
Get the item stack in the given slot.
|
S[] |
getStacks() |
void |
onUpdate()
Handle inventory updates.
|
void |
setCurrentRecipeIndex(int currentRecipeIndex) |
void |
setStack(int slotId,
S stack)
Set the item stack in the given slot.
|
S |
split(int slotId,
int count) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmaxStackCountpublic S[] getStacks()
public int getCurrentRecipeIndex()
public void setCurrentRecipeIndex(int currentRecipeIndex)
public S split(int slotId, int count)
public int getSize()
public S getStack(int slotId)
IInventorypublic void setStack(int slotId,
S stack)
IInventorypublic void onUpdate()
IInventory