Class GenericItemInfo
java.lang.Object
org.screamingsandals.simpleinventories.inventory.GenericItemInfo
- All Implemented Interfaces:
Cloneable
,IdentifiableEntry
,InventoryChild
,InventoryParent
,Queueable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
clone()
boolean
List<org.screamingsandals.lib.item.Item>
net.kyori.adventure.inventory.Book
getBook()
Deprecated.@Nullable String
GENERATION ONLYorg.screamingsandals.lib.event.EventManager
getFirstPropertyByName
(String name) @NotNull InventorySet
getId()
org.screamingsandals.lib.item.Item
getItem()
int
getPropertiesByName
(@NotNull String name) @Nullable Clone
GENERATION ONLYGENERATION ONLY@Nullable Times
GENERATION ONLYboolean
boolean
hasBook()
Deprecated.boolean
int
hashCode()
boolean
hasId()
boolean
boolean
boolean
boolean
void
moveAbsolute
(int position) void
moveRelative
(int relative) void
repaint()
void
setBook
(net.kyori.adventure.inventory.Book book) Deprecated.void
setChildInventory
(SubInventory childInventory) void
setDefaultCurrency
(@Nullable String defaultCurrency) Deprecated.void
setDisabled
(Supplier<Boolean> disabled) void
setFormat
(@NotNull InventorySet format) Deprecated.void
void
setItem
(org.screamingsandals.lib.item.Item item) void
setLocate
(InventoryLink locate) void
setParent
(SubInventory parent) void
setPosition
(int position) void
setRequestedClone
(@Nullable Clone requestedClone) GENERATION ONLYvoid
setRequestedPosition
(Position requestedPosition) GENERATION ONLYvoid
setRequestedTimes
(@Nullable Times requestedTimes) GENERATION ONLYvoid
setVisible
(Supplier<Boolean> visible) void
setWritten
(Supplier<Boolean> written) toString()
-
Constructor Details
-
GenericItemInfo
-
-
Method Details
-
setFormat
Deprecated. -
hasId
public boolean hasId() -
hasProperties
public boolean hasProperties() -
hasAnimation
public boolean hasAnimation() -
hasBook
Deprecated. -
hasChildInventory
public boolean hasChildInventory()- Specified by:
hasChildInventory
in interfaceInventoryParent
-
isWritten
public boolean isWritten() -
isDisabled
public boolean isDisabled() -
isVisible
public boolean isVisible() -
getPropertiesByName
-
getFirstPropertyByName
-
moveAbsolute
public void moveAbsolute(int position) -
moveRelative
public void moveRelative(int relative) -
repaint
public void repaint() -
clone
-
getFormat
- Specified by:
getFormat
in interfaceIdentifiableEntry
-
getParent
- Specified by:
getParent
in interfaceInventoryChild
-
getPosition
public int getPosition() -
getItem
public org.screamingsandals.lib.item.Item getItem() -
getAnimation
-
getVisible
-
getDisabled
-
getId
- Specified by:
getId
in interfaceIdentifiableEntry
-
getProperties
-
getBook
Deprecated. -
getWritten
-
getEventManager
public org.screamingsandals.lib.event.EventManager getEventManager() -
getChildInventory
- Specified by:
getChildInventory
in interfaceInventoryParent
-
getLocate
-
getExecutions
-
getPrices
-
getRequestedPosition
GENERATION ONLY -
getRequestedClone
GENERATION ONLY -
getRequestedTimes
GENERATION ONLY -
getDefaultCurrency
GENERATION ONLY -
setParent
- Specified by:
setParent
in interfaceInventoryChild
-
setPosition
public void setPosition(int position) -
setItem
public void setItem(org.screamingsandals.lib.item.Item item) -
setVisible
-
setDisabled
-
setId
-
setBook
Deprecated. -
setWritten
-
setChildInventory
- Specified by:
setChildInventory
in interfaceInventoryParent
-
setLocate
-
setRequestedPosition
GENERATION ONLY -
setRequestedClone
GENERATION ONLY -
setRequestedTimes
GENERATION ONLY -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setDefaultCurrency
Deprecated.GENERATION ONLY
-