Package com.janboerman.invsee.spigot.api
Interface SpectatorInventoryView<Slot>
- Type Parameters:
Slot
- the inventory's slot type.
- All Known Subinterfaces:
EnderSpectatorInventoryView
,MainSpectatorInventoryView
public interface SpectatorInventoryView<Slot>
Represents an open window for a
SpectatorInventory
.-
Method Summary
Modifier and TypeMethodDescriptionGet the options this window was created with.Get the mirror theSpectatorInventory
is viewed through.Get the target of theSpectatorInventory
.getTitle()
Get the title of this InventoryView.Get the top inventory of this view.Get the difference tracked by this window.
-
Method Details
-
getTopInventory
SpectatorInventory<Slot> getTopInventory()Get the top inventory of this view.- Returns:
- the top inventory
-
getTrackedDifference
Get the difference tracked by this window.- Returns:
- the difference
-
getCreationOptions
CreationOptions<Slot> getCreationOptions()Get the options this window was created with.- Returns:
- a copy of the creation options
-
getTitle
-
getMirror
Get the mirror theSpectatorInventory
is viewed through.- Returns:
- the mirror
- See Also:
-
getTarget
-