Interface MainInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot,Self,NMS>,Self extends MainInventory<NMS,Self>>
- All Superinterfaces:
Inventory
,Iterable<ItemStack>
,MainSpectatorInventory
,Personal
,ShallowCopy<Self>
,SpectatorInventory<PlayerInventorySlot>
,StandardSpectatorInventory<PlayerInventorySlot,
,NMS, Self> Wrapper<NMS,
Self>
public interface MainInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot,Self,NMS>,Self extends MainInventory<NMS,Self>>
extends StandardSpectatorInventory<PlayerInventorySlot,NMS,Self>, MainSpectatorInventory, Personal
-
Method Summary
Modifier and TypeMethodDescriptiondefault Mirror
<PlayerInventorySlot> get the default Mirror this inventory is viewed throughdefault UUID
get the unique id of the spectated playerdefault String
get the username of the spectated playerdefault String
getTitle()
get the title of this inventorydefault void
setContents
(MainSpectatorInventory newContents) Set the contents of this inventory based on the contents from the provided inventory.Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getHolder, getItem, getLocation, getMaxStackSize, getSize, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.janboerman.invsee.spigot.api.MainSpectatorInventory
getArmourContents, getCursorContents, getOffHandContents, getPersonalContents, getPersonalContentsSize, getStorageContents, setArmourContents, setCursorContents, setOffHandContents, setPersonalContents, setStorageContents
Methods inherited from interface com.janboerman.invsee.spigot.internal.inventory.Personal
unwatch, watch
Methods inherited from interface com.janboerman.invsee.spigot.internal.inventory.StandardSpectatorInventory
getCreationOptions
Methods inherited from interface com.janboerman.invsee.spigot.internal.inventory.Wrapper
defaultMaxStack, getInventory, shallowCopyFrom
-
Method Details
-
getSpectatedPlayerName
Description copied from interface:SpectatorInventory
get the username of the spectated player- Specified by:
getSpectatedPlayerName
in interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot,
Self, NMS>> - Specified by:
getSpectatedPlayerName
in interfaceStandardSpectatorInventory<PlayerInventorySlot,
NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS, Self>>
-
getSpectatedPlayerId
Description copied from interface:SpectatorInventory
get the unique id of the spectated player- Specified by:
getSpectatedPlayerId
in interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot,
Self, NMS>> - Specified by:
getSpectatedPlayerId
in interfaceStandardSpectatorInventory<PlayerInventorySlot,
NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS, Self>>
-
getTitle
Description copied from interface:SpectatorInventory
get the title of this inventory- Specified by:
getTitle
in interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot,
Self, NMS>> - Specified by:
getTitle
in interfaceStandardSpectatorInventory<PlayerInventorySlot,
NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS, Self>>
-
getMirror
Description copied from interface:SpectatorInventory
get the default Mirror this inventory is viewed through- Specified by:
getMirror
in interfaceMainSpectatorInventory
- Specified by:
getMirror
in interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot,
Self, NMS>> - Specified by:
getMirror
in interfaceStandardSpectatorInventory<PlayerInventorySlot,
NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS, Self>>
-
setContents
Description copied from interface:MainSpectatorInventory
Set the contents of this inventory based on the contents from the provided inventory.- Specified by:
setContents
in interfaceMainSpectatorInventory
-