Class PlayerInventory
java.lang.Object
fr.fidorial.inventory.PlayerInventory
- All Implemented Interfaces:
Container
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears every slot.get(int slot) Returns the contents of the requested slot, nevernull.booleanisEmpty()trueif every slot is empty.voidReplaces the contents of a slot.voidsetAllItems(ItemStack @Nullable [] contents) intsize()Number of slots exposed by this container.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
PlayerInventory
public PlayerInventory()
-
-
Method Details
-
size
-
get
-
set
-
clear
-
isEmpty
-
getAllItems
-
setAllItems
-