Class HotbarSnapshot
java.lang.Object
org.core.inventory.parts.snapshot.HotbarSnapshot
- All Implemented Interfaces:
Inventory
,Hotbar
,InventoryPart
,InventoryPartSnapshot
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.core.inventory.Inventory
Inventory.Parent
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHotbarSnapshot(int selected, Collection<? extends Slot> slots)
HotbarSnapshot(int selected, Slot... slots)
HotbarSnapshot(Hotbar bar)
-
Method Summary
Modifier and TypeMethodDescriptionint
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.core.inventory.parts.Hotbar
getSelectedSlot
Methods inherited from interface org.core.inventory.parts.InventoryPart
getSlot
-
Field Details
-
selected
protected final int selected -
slots
-
-
Constructor Details
-
HotbarSnapshot
-
HotbarSnapshot
-
HotbarSnapshot
-
-
Method Details
-
getSelectedSlotPos
public int getSelectedSlotPos()- Specified by:
getSelectedSlotPos
in interfaceHotbar
-
getItemSlots
- Specified by:
getItemSlots
in interfaceInventory
-
createSnapshot
- Specified by:
createSnapshot
in interfaceHotbar
- Specified by:
createSnapshot
in interfaceInventory
-
getSlotCount
public int getSlotCount()- Specified by:
getSlotCount
in interfaceInventory
-