Class PlayerInventoryMirror
java.lang.Object
com.janboerman.invsee.spigot.internal.template.PlayerInventoryMirror
- All Implemented Interfaces:
Mirror<PlayerInventorySlot>
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 PlayerInventoryMirrorofTemplate(String template) toString()static StringtoTemplate(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:MirrorGets 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:
getIndexin interfaceMirror<PlayerInventorySlot>
-
getSlot
Description copied from interface:MirrorGet the slot for the index at which the slot is displayed. This method must satisfy the equationObjects.equals(slot, getSlot(getIndex(slot))).- Specified by:
getSlotin interfaceMirror<PlayerInventorySlot>
-
getSlots
-
toString
-
toTemplate
-
ofTemplate(String)instead.