Package io.github.cottonmc.cotton.gui
Class EmptyInventory
java.lang.Object
io.github.cottonmc.cotton.gui.EmptyInventory
An empty inventory that cannot hold any items.
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlayerUse
(PlayerEntity player) void
clear()
getStack
(int slot) boolean
isEmpty()
void
removeStack
(int slot) removeStack
(int slot, int count) void
int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, isValid, onClose, onOpen
-
Field Details
-
INSTANCE
-
-
Method Details
-
clear
public void clear() -
size
public int size() -
isEmpty
public boolean isEmpty() -
getStack
-
removeStack
- Specified by:
removeStack
in interfaceInventory
-
removeStack
- Specified by:
removeStack
in interfaceInventory
-
setStack
-
markDirty
public void markDirty() -
canPlayerUse
- Specified by:
canPlayerUse
in interfaceInventory
-