Class BinderInventory
java.lang.Object
net.minecraft.world.SimpleContainer
com.pixelmonmod.tcg.client.container.BinderInventory
- All Implemented Interfaces:
net.minecraft.world.Clearable
,net.minecraft.world.Container
,net.minecraft.world.inventory.StackedContentsCompatible
public class BinderInventory
extends net.minecraft.world.SimpleContainer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
int
static final int
static final int
static String
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItem
(int index, net.minecraft.world.item.ItemStack stack) void
int
net.minecraft.world.item.ItemStack
getItem
(int index) int
int
getPage()
net.minecraft.world.entity.player.Player
int
void
void
readFromNBT
(net.minecraft.nbt.CompoundTag compound) net.minecraft.world.item.ItemStack
removeItem
(int index, int count) net.minecraft.world.item.ItemStack
removeItemNoUpdate
(int index) void
setItem
(int index, net.minecraft.world.item.ItemStack stack) void
startOpen
(net.minecraft.world.entity.player.Player player) boolean
stillValid
(net.minecraft.world.entity.player.Player player) void
stopOpen
(net.minecraft.world.entity.player.Player player) void
writeToNBT
(net.minecraft.nbt.CompoundTag tagcompound) Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, isEmpty, removeAllItems, removeItemType, removeListener, setChanged, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, hasAnyMatching, hasAnyOf
-
Field Details
-
TAG_NAME
-
size
public static final int size- See Also:
-
sizePerPage
public static final int sizePerPage- See Also:
-
maxPages
public static final int maxPages- See Also:
-
page
public int page
-
-
Constructor Details
-
BinderInventory
public BinderInventory(net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag tagcompound) -
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag compound) -
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfacenet.minecraft.world.Container
- Overrides:
getContainerSize
in classnet.minecraft.world.SimpleContainer
-
getSizePage
public int getSizePage() -
getPage
public int getPage() -
incrementPage
public void incrementPage() -
decrementPage
public void decrementPage() -
getItem
public net.minecraft.world.item.ItemStack getItem(int index) - Specified by:
getItem
in interfacenet.minecraft.world.Container
- Overrides:
getItem
in classnet.minecraft.world.SimpleContainer
-
removeItem
public net.minecraft.world.item.ItemStack removeItem(int index, int count) - Specified by:
removeItem
in interfacenet.minecraft.world.Container
- Overrides:
removeItem
in classnet.minecraft.world.SimpleContainer
-
removeItemNoUpdate
public net.minecraft.world.item.ItemStack removeItemNoUpdate(int index) - Specified by:
removeItemNoUpdate
in interfacenet.minecraft.world.Container
- Overrides:
removeItemNoUpdate
in classnet.minecraft.world.SimpleContainer
-
setItem
public void setItem(int index, net.minecraft.world.item.ItemStack stack) - Specified by:
setItem
in interfacenet.minecraft.world.Container
- Overrides:
setItem
in classnet.minecraft.world.SimpleContainer
-
getMaxStackSize
public int getMaxStackSize() -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValid
in interfacenet.minecraft.world.Container
- Overrides:
stillValid
in classnet.minecraft.world.SimpleContainer
-
startOpen
public void startOpen(net.minecraft.world.entity.player.Player player) -
stopOpen
public void stopOpen(net.minecraft.world.entity.player.Player player) -
canPlaceItem
public boolean canPlaceItem(int index, net.minecraft.world.item.ItemStack stack) -
getPlayer
public net.minecraft.world.entity.player.Player getPlayer()
-