Interface EnderInventory<NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>, Self extends EnderInventory<NMS,Self> >
- All Superinterfaces:
EnderSpectatorInventory, Inventory, Iterable<ItemStack>, ShallowCopy<Self>, SpectatorInventory<EnderChestSlot>, StandardSpectatorInventory<EnderChestSlot, NMS, Self>, Wrapper<NMS,Self>
public interface EnderInventory<NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>, Self extends EnderInventory<NMS,Self>>
extends StandardSpectatorInventory<EnderChestSlot, NMS, Self>, EnderSpectatorInventory
-
Method Summary
Modifier and TypeMethodDescriptiondefault Mirror<EnderChestSlot> 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(EnderSpectatorInventory newContents) Set the contents of this inventory based on the contents from the provided inventory.Methods inherited from interface EnderSpectatorInventory
getStorageContents, setStorageContentsMethods 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 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<EnderChestSlot, Self, NMS>>- Specified by:
getSpectatedPlayerNamein interfaceStandardSpectatorInventory<EnderChestSlot, NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>, Self extends EnderInventory<NMS,Self>>
-
getSpectatedPlayerId
Description copied from interface:SpectatorInventoryget the unique id of the spectated player- Specified by:
getSpectatedPlayerIdin interfaceSpectatorInventory<NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>>- Specified by:
getSpectatedPlayerIdin interfaceStandardSpectatorInventory<EnderChestSlot, NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>, Self extends EnderInventory<NMS,Self>>
-
getTitle
Description copied from interface:SpectatorInventoryget the title of this inventory- Specified by:
getTitlein interfaceSpectatorInventory<NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>>- Specified by:
getTitlein interfaceStandardSpectatorInventory<EnderChestSlot, NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>, Self extends EnderInventory<NMS,Self>>
-
getMirror
Description copied from interface:SpectatorInventoryget the default Mirror this inventory is viewed through- Specified by:
getMirrorin interfaceEnderSpectatorInventory- Specified by:
getMirrorin interfaceSpectatorInventory<NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>>- Specified by:
getMirrorin interfaceStandardSpectatorInventory<EnderChestSlot, NMS extends AbstractNmsInventory<EnderChestSlot, Self, NMS>, Self extends EnderInventory<NMS,Self>>
-
setContents
Description copied from interface:EnderSpectatorInventorySet the contents of this inventory based on the contents from the provided inventory.- Specified by:
setContentsin interfaceEnderSpectatorInventory
-