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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHotbarSnapshot(int selected, Collection<? extends Slot> slots)HotbarSnapshot(int selected, Slot... slots)HotbarSnapshot(Hotbar bar) -
Method Summary
Modifier and TypeMethodDescriptionintintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.core.inventory.parts.Hotbar
getSelectedSlotMethods 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:
getSelectedSlotPosin interfaceHotbar
-
getItemSlots
- Specified by:
getItemSlotsin interfaceInventory
-
createSnapshot
- Specified by:
createSnapshotin interfaceHotbar- Specified by:
createSnapshotin interfaceInventory
-
getSlotCount
public int getSlotCount()- Specified by:
getSlotCountin interfaceInventory
-