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, toString
public 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.IInventory
getContainerSize
in class net.minecraft.inventory.Inventory
public 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.IInventory
getItem
in class net.minecraft.inventory.Inventory
public net.minecraft.item.ItemStack removeItem(int index, int count)
removeItem
in interface net.minecraft.inventory.IInventory
removeItem
in class net.minecraft.inventory.Inventory
public net.minecraft.item.ItemStack removeItemNoUpdate(int index)
removeItemNoUpdate
in interface net.minecraft.inventory.IInventory
removeItemNoUpdate
in class net.minecraft.inventory.Inventory
public void setItem(int index, net.minecraft.item.ItemStack stack)
setItem
in interface net.minecraft.inventory.IInventory
setItem
in class net.minecraft.inventory.Inventory
public int getMaxStackSize()
public boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid
in interface net.minecraft.inventory.IInventory
stillValid
in class net.minecraft.inventory.Inventory
public 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()