public class BinderInventory
extends net.minecraft.inventory.Inventory
| Modifier and Type | Field and Description |
|---|---|
static int |
maxPages |
int |
page |
static int |
size |
static int |
sizePerPage |
static java.lang.String |
TAG_NAME |
| Constructor and Description |
|---|
BinderInventory(net.minecraft.entity.player.PlayerEntity player) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlaceItem(int index,
net.minecraft.item.ItemStack stack) |
void |
decrementPage() |
int |
getContainerSize() |
net.minecraft.item.ItemStack |
getItem(int index) |
int |
getMaxStackSize() |
int |
getPage() |
net.minecraft.entity.player.PlayerEntity |
getPlayer() |
int |
getSizePage() |
void |
incrementPage() |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT compound) |
net.minecraft.item.ItemStack |
removeItem(int index,
int count) |
net.minecraft.item.ItemStack |
removeItemNoUpdate(int index) |
void |
setItem(int index,
net.minecraft.item.ItemStack stack) |
void |
startOpen(net.minecraft.entity.player.PlayerEntity player) |
boolean |
stillValid(net.minecraft.entity.player.PlayerEntity player) |
void |
stopOpen(net.minecraft.entity.player.PlayerEntity player) |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT tagcompound) |
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, isEmpty, removeAllItems, removeItemType, removeListener, setChanged, toStringpublic static java.lang.String TAG_NAME
public static final int size
public static final int sizePerPage
public static final int maxPages
public int page
public BinderInventory(net.minecraft.entity.player.PlayerEntity player)
public void writeToNBT(net.minecraft.nbt.CompoundNBT tagcompound)
public void readFromNBT(net.minecraft.nbt.CompoundNBT compound)
public int getContainerSize()
getContainerSize in interface net.minecraft.inventory.IInventorygetContainerSize in class net.minecraft.inventory.Inventorypublic int getSizePage()
public int getPage()
public void incrementPage()
public void decrementPage()
public net.minecraft.item.ItemStack getItem(int index)
getItem in interface net.minecraft.inventory.IInventorygetItem in class net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeItem(int index,
int count)
removeItem in interface net.minecraft.inventory.IInventoryremoveItem in class net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeItemNoUpdate(int index)
removeItemNoUpdate in interface net.minecraft.inventory.IInventoryremoveItemNoUpdate in class net.minecraft.inventory.Inventorypublic void setItem(int index,
net.minecraft.item.ItemStack stack)
setItem in interface net.minecraft.inventory.IInventorysetItem in class net.minecraft.inventory.Inventorypublic int getMaxStackSize()
public boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid in interface net.minecraft.inventory.IInventorystillValid in class net.minecraft.inventory.Inventorypublic void startOpen(net.minecraft.entity.player.PlayerEntity player)
public void stopOpen(net.minecraft.entity.player.PlayerEntity player)
public boolean canPlaceItem(int index,
net.minecraft.item.ItemStack stack)
public net.minecraft.entity.player.PlayerEntity getPlayer()