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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator -
Field Summary
FieldsFields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlayerUse(PlayerEntity player) voidclear()getStack(int slot) booleanisEmpty()voidremoveStack(int slot) removeStack(int slot, int count) voidintsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, isValid, iterator, onClose, onOpenMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
INSTANCE
-
-
Method Details
-
clear
public void clear() -
size
public int size() -
isEmpty
public boolean isEmpty() -
getStack
-
removeStack
- Specified by:
removeStackin interfaceInventory
-
removeStack
- Specified by:
removeStackin interfaceInventory
-
setStack
-
markDirty
public void markDirty() -
canPlayerUse
- Specified by:
canPlayerUsein interfaceInventory
-