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
FieldsModifier and TypeFieldDescriptionstatic final intintstatic final intstatic final intstatic StringFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItem(int index, net.minecraft.world.item.ItemStack stack) voidintnet.minecraft.world.item.ItemStackgetItem(int index) intintgetPage()net.minecraft.world.entity.player.PlayerintvoidvoidreadFromNBT(net.minecraft.nbt.CompoundTag compound) net.minecraft.world.item.ItemStackremoveItem(int index, int count) net.minecraft.world.item.ItemStackremoveItemNoUpdate(int index) voidsetItem(int index, net.minecraft.world.item.ItemStack stack) voidstartOpen(net.minecraft.world.entity.player.Player player) booleanstillValid(net.minecraft.world.entity.player.Player player) voidstopOpen(net.minecraft.world.entity.player.Player player) voidwriteToNBT(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getContainerSizein interfacenet.minecraft.world.Container- Overrides:
getContainerSizein 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:
getItemin interfacenet.minecraft.world.Container- Overrides:
getItemin classnet.minecraft.world.SimpleContainer
-
removeItem
public net.minecraft.world.item.ItemStack removeItem(int index, int count) - Specified by:
removeItemin interfacenet.minecraft.world.Container- Overrides:
removeItemin classnet.minecraft.world.SimpleContainer
-
removeItemNoUpdate
public net.minecraft.world.item.ItemStack removeItemNoUpdate(int index) - Specified by:
removeItemNoUpdatein interfacenet.minecraft.world.Container- Overrides:
removeItemNoUpdatein classnet.minecraft.world.SimpleContainer
-
setItem
public void setItem(int index, net.minecraft.world.item.ItemStack stack) - Specified by:
setItemin interfacenet.minecraft.world.Container- Overrides:
setItemin classnet.minecraft.world.SimpleContainer
-
getMaxStackSize
public int getMaxStackSize() -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin interfacenet.minecraft.world.Container- Overrides:
stillValidin 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()
-