public class InventoryWrapper
extends java.lang.Object
implements net.minecraft.inventory.IInventory
| Constructor and Description |
|---|
InventoryWrapper(net.minecraftforge.items.IItemHandlerModifiable iItemHandler,
java.util.function.Predicate<net.minecraft.entity.player.PlayerEntity> canInteract) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
net.minecraft.item.ItemStack |
decrStackSize(int index,
int count) |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int index) |
boolean |
isEmpty() |
boolean |
isUsableByPlayer(net.minecraft.entity.player.PlayerEntity player) |
void |
markDirty() |
net.minecraft.item.ItemStack |
removeStackFromSlot(int index) |
void |
setInventorySlotContents(int index,
net.minecraft.item.ItemStack stack) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic InventoryWrapper(net.minecraftforge.items.IItemHandlerModifiable iItemHandler,
java.util.function.Predicate<net.minecraft.entity.player.PlayerEntity> canInteract)
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventory@Nonnull public net.minecraft.item.ItemStack getStackInSlot(int index)
getStackInSlot in interface net.minecraft.inventory.IInventory@Nonnull
public net.minecraft.item.ItemStack decrStackSize(int index,
int count)
decrStackSize in interface net.minecraft.inventory.IInventory@Nonnull public net.minecraft.item.ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int index,
@Nonnull
net.minecraft.item.ItemStack stack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic boolean isUsableByPlayer(@Nonnull
net.minecraft.entity.player.PlayerEntity player)
isUsableByPlayer in interface net.minecraft.inventory.IInventorypublic void clear()
clear in interface net.minecraft.inventory.IClearable