Class SubInventory
java.lang.Object
org.screamingsandals.simpleinventories.inventory.SubInventory
- All Implemented Interfaces:
org.screamingsandals.lib.container.Openable
,SubInventoryLike<SubInventory>
public class SubInventory
extends Object
implements org.screamingsandals.lib.container.Openable, SubInventoryLike<SubInventory>
-
Constructor Summary
ConstructorDescriptionSubInventory
(boolean main, @Nullable IdentifiableEntry itemOwner, @NotNull @NonNull InventorySet inventorySet) -
Method Summary
Modifier and TypeMethodDescriptionabsolute
(int absolute) Deprecated.boolean
acceptsLink
(String link) protected boolean
column
(int column) dropContentsAfter
(int position) dropContentsBefore
(int position) dropContentsBetween
(int start, int end) dropContentsByFilter
(Predicate<GenericItemInfo> filter) dropContentsById
(@NotNull String id) dropContentsOn
(int position) dropContentsOn
(List<Integer> positions) boolean
void
int
int
@NotNull @NonNull InventorySet
@Nullable IdentifiableEntry
getQueue()
Used for adding operations and items for future process.int
hashCode()
boolean
isMain()
void
openInventory
(org.screamingsandals.lib.player.PlayerWrapper wrapper) process()
putIntoQueue
(Queueable... items) row
(int row) void
setInventorySet
(@NotNull @NonNull InventorySet inventorySet) Deprecated.skip
(int skip) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.screamingsandals.simpleinventories.inventory.SubInventoryLike
copyOfQueue
-
Constructor Details
-
SubInventory
public SubInventory(boolean main, @Nullable @Nullable IdentifiableEntry itemOwner, @NotNull @NonNull @NotNull @NonNull InventorySet inventorySet)
-
-
Method Details
-
acceptsLink
-
getLocalOptions
-
getHighestPage
public int getHighestPage() -
process
-
process
-
openInventory
public void openInventory(org.screamingsandals.lib.player.PlayerWrapper wrapper) - Specified by:
openInventory
in interfaceorg.screamingsandals.lib.container.Openable
-
carriageReturn
-
lineBreak
-
pageBreak
-
skip
-
absolute
Deprecated. -
column
-
column
-
row
-
addItem
-
dropContents
-
dropContentsOn
-
dropContentsOn
-
dropContentsAfter
-
dropContentsBefore
-
dropContentsBetween
-
dropContentsByFilter
-
dropContentsById
-
putIntoQueue
- Specified by:
putIntoQueue
in interfaceSubInventoryLike<SubInventory>
-
getQueue
- Specified by:
getQueue
in interfaceSubInventoryLike<SubInventory>
-
forceReload
public void forceReload() -
isMain
public boolean isMain() -
getItemOwner
-
getInventorySet
-
getCursorPosition
public int getCursorPosition() -
getLastItem
-
getContents
-
getWaitingQueue
Used for adding operations and items for future process. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setInventorySet
@Deprecated public void setInventorySet(@NotNull @NonNull @NotNull @NonNull InventorySet inventorySet) Deprecated.
-