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 UUIDget the unique id of the spectated playerdefault Stringget the username of the spectated playerdefault StringgetTitle()get the title of this inventorydefault voidsetContents(MainSpectatorInventory newContents) Set the contents of this inventory based on the contents from the provided inventory.Methods inherited from interface 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, setMaxStackSizeMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface MainSpectatorInventory
getArmourContents, getCursorContents, getOffHandContents, getPersonalContents, getPersonalContentsSize, getStorageContents, setArmourContents, setCursorContents, setOffHandContents, setPersonalContents, setStorageContentsMethods inherited from interface StandardSpectatorInventory
getCreationOptionsMethods inherited from interface Wrapper
defaultMaxStack, getInventory, shallowCopyFrom
-
Method Details
-
getSpectatedPlayerName
Description copied from interface:SpectatorInventoryget the username of the spectated player- Specified by:
getSpectatedPlayerNamein interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>>- Specified by:
getSpectatedPlayerNamein interfaceStandardSpectatorInventory<PlayerInventorySlot, NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS,Self>>
-
getSpectatedPlayerId
Description copied from interface:SpectatorInventoryget the unique id of the spectated player- Specified by:
getSpectatedPlayerIdin interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>>- Specified by:
getSpectatedPlayerIdin interfaceStandardSpectatorInventory<PlayerInventorySlot, NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS,Self>>
-
getTitle
Description copied from interface:SpectatorInventoryget the title of this inventory- Specified by:
getTitlein interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>>- Specified by:
getTitlein interfaceStandardSpectatorInventory<PlayerInventorySlot, NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS,Self>>
-
getMirror
Description copied from interface:SpectatorInventoryget the default Mirror this inventory is viewed through- Specified by:
getMirrorin interfaceMainSpectatorInventory- Specified by:
getMirrorin interfaceSpectatorInventory<NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>>- Specified by:
getMirrorin interfaceStandardSpectatorInventory<PlayerInventorySlot, NMS extends AbstractNmsInventory<PlayerInventorySlot, Self, NMS>, Self extends MainInventory<NMS,Self>>
-
setContents
Description copied from interface:MainSpectatorInventorySet the contents of this inventory based on the contents from the provided inventory.- Specified by:
setContentsin interfaceMainSpectatorInventory
-