Package net.minestom.server.item
Interface ItemMeta
- All Superinterfaces:
NetworkBuffer.Writer
,TagReadable
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canDestroy
(@NotNull Block block) default boolean
canPlaceOn
(@NotNull Block block) default @NotNull List<@NotNull ItemAttribute>
default int
default int
default @Nullable net.kyori.adventure.text.Component
default @NotNull Map<Enchantment,
Short> default int
default @NotNull List<@NotNull net.kyori.adventure.text.Component>
getLore()
<T> @UnknownNullability T
Reads the specified tag.default boolean
@NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound
toNBT()
@NotNull String
toSNBT()
@NotNull ItemMeta
with
(@NotNull Consumer<@NotNull ItemMeta.Builder> builderConsumer) Methods inherited from interface net.minestom.server.network.NetworkBuffer.Writer
write
Methods inherited from interface net.minestom.server.tag.TagReadable
hasTag
-
Method Details
-
getTag
Description copied from interface:TagReadable
Reads the specified tag.- Specified by:
getTag
in interfaceTagReadable
- Type Parameters:
T
- the tag type- Parameters:
tag
- the tag to read- Returns:
- the read tag, null if not present
-
with
@Contract(value="_, -> new", pure=true) @NotNull @NotNull ItemMeta with(@NotNull @NotNull Consumer<@NotNull ItemMeta.Builder> builderConsumer) -
toNBT
@NotNull @NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound toNBT() -
toSNBT
-
getDamage
@Contract(pure=true) default int getDamage() -
isUnbreakable
@Contract(pure=true) default boolean isUnbreakable() -
getHideFlag
@Contract(pure=true) default int getHideFlag() -
getDisplayName
@Contract(pure=true) @Nullable default @Nullable net.kyori.adventure.text.Component getDisplayName() -
getLore
@Contract(pure=true) @NotNull default @NotNull List<@NotNull net.kyori.adventure.text.Component> getLore() -
getEnchantmentMap
-
getAttributes
-
getCustomModelData
@Contract(pure=true) default int getCustomModelData() -
getCanDestroy
-
canDestroy
-
getCanPlaceOn
-
canPlaceOn
-