Package com.loohp.limbo.inventory
Class ItemStack
java.lang.Object
com.loohp.limbo.inventory.ItemStack
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
amount()
amount
(int amount) clone()
<T> T
component
(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type) <T> ItemStack
component
(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type, T value) org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents
components
(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components) net.kyori.adventure.text.Component
displayName
(net.kyori.adventure.text.Component component) boolean
int
int
hashCode()
boolean
toString()
net.kyori.adventure.key.Key
type()
type
(net.kyori.adventure.key.Key material)
-
Field Details
-
AIR
-
-
Constructor Details
-
ItemStack
public ItemStack(net.kyori.adventure.key.Key material) -
ItemStack
public ItemStack(net.kyori.adventure.key.Key material, int amount) -
ItemStack
public ItemStack(net.kyori.adventure.key.Key material, int amount, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components)
-
-
Method Details
-
clone
-
type
public net.kyori.adventure.key.Key type() -
type
-
amount
public int amount() -
amount
-
components
public org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components() -
components
@Contract("_ -> new") public ItemStack components(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components) -
component
public <T> T component(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type) -
component
@Contract("_, _ -> this") public <T> ItemStack component(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type, T value) -
displayName
public net.kyori.adventure.text.Component displayName() -
displayName
-
getMaxStackSize
public int getMaxStackSize() -
equals
-
isSimilar
-
hashCode
public int hashCode() -
toString
-