Class PlayerInventoryMirror
java.lang.Object
com.janboerman.invsee.spigot.internal.template.PlayerInventoryMirror
- All Implemented Interfaces:
Mirror<PlayerInventorySlot>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIndex
(PlayerInventorySlot slot) Gets the index for the grid in which the slot is displayed.getSlot
(int index) Get the slot for the index at which the slot is displayed.getSlots()
static PlayerInventoryMirror
ofTemplate
(String template) toString()
static String
toTemplate
(Mirror<PlayerInventorySlot> mirror)
-
Field Details
-
DEFAULT_TEMPLATE
- See Also:
-
DEFAULT
-
-
Constructor Details
-
PlayerInventoryMirror
Deprecated.UseofTemplate(String)
instead.
-
-
Method Details
-
ofTemplate
-
getIndex
Description copied from interface:Mirror
Gets the index for the grid in which the slot is displayed. This method must satisfy the equationObjects.equals(index, getIndex(getSlot(index)))
.s- Specified by:
getIndex
in interfaceMirror<PlayerInventorySlot>
-
getSlot
Description copied from interface:Mirror
Get the slot for the index at which the slot is displayed. This method must satisfy the equationObjects.equals(slot, getSlot(getIndex(slot)))
.- Specified by:
getSlot
in interfaceMirror<PlayerInventorySlot>
-
getSlots
-
toString
-
toTemplate
-
ofTemplate(String)
instead.