Package net.minestom.server.item
Interface ItemMeta.Builder
- All Superinterfaces:
Taggable
,TagReadable
,TagWritable
- All Known Subinterfaces:
ItemMetaView.Builder
- All Known Implementing Classes:
BannerMeta.Builder
,BundleMeta.Builder
,CompassMeta.Builder
,CrossbowMeta.Builder
,EnchantedBookMeta.Builder
,FireworkEffectMeta.Builder
,FireworkMeta.Builder
,LeatherArmorMeta.Builder
,MapMeta.Builder
,PlayerHeadMeta.Builder
,PotionMeta.Builder
,ShieldMeta.Builder
,WritableBookMeta.Builder
,WrittenBookMeta.Builder
- Enclosing interface:
ItemMeta
public static sealed interface ItemMeta.Builder
extends Taggable
permits ItemMetaView.Builder (not exhaustive)
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ItemMeta.Builder
attributes
(@NotNull List<@NotNull ItemAttribute> attributes) @NotNull ItemMeta
build()
default @NotNull ItemMeta.Builder
canDestroy
(@NotNull Set<@NotNull Block> blocks) default @NotNull ItemMeta.Builder
canDestroy
(@NotNull Block... blocks) default @NotNull ItemMeta.Builder
canPlaceOn
(@NotNull Set<@NotNull Block> blocks) default @NotNull ItemMeta.Builder
canPlaceOn
(@NotNull Block... blocks) default @NotNull ItemMeta.Builder
default @NotNull ItemMeta.Builder
customModelData
(int customModelData) default @NotNull ItemMeta.Builder
damage
(int damage) default @NotNull ItemMeta.Builder
displayName
(@Nullable Component displayName) default @NotNull ItemMeta.Builder
enchantment
(@NotNull Enchantment enchantment, short level) default @NotNull ItemMeta.Builder
enchantments
(@NotNull Map<Enchantment, Short> enchantments) default @NotNull ItemMeta.Builder
hideFlag
(int hideFlag) default @NotNull ItemMeta.Builder
hideFlag
(@NotNull ItemHideFlag... hideFlags) default @NotNull ItemMeta.Builder
default @NotNull ItemMeta.Builder
default <T> @NotNull ItemMeta.Builder
default @NotNull ItemMeta.Builder
unbreakable
(boolean unbreakable)
-
Method Details
-
build
-
set
-
damage
-
unbreakable
-
hideFlag
-
hideFlag
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder hideFlag(@NotNull @NotNull ItemHideFlag... hideFlags) -
displayName
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder displayName(@Nullable @Nullable Component displayName) -
lore
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder lore(@NotNull @NotNull List<? extends Component> lore) -
lore
-
enchantments
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder enchantments(@NotNull @NotNull Map<Enchantment, Short> enchantments) -
enchantment
@Contract("_, _ -> this") @NotNull default @NotNull ItemMeta.Builder enchantment(@NotNull @NotNull Enchantment enchantment, short level) -
clearEnchantment
-
attributes
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder attributes(@NotNull @NotNull List<@NotNull ItemAttribute> attributes) -
customModelData
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder customModelData(int customModelData) -
canPlaceOn
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canPlaceOn(@NotNull @NotNull Set<@NotNull Block> blocks) -
canPlaceOn
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canPlaceOn(@NotNull @NotNull Block... blocks) -
canDestroy
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canDestroy(@NotNull @NotNull Set<@NotNull Block> blocks) -
canDestroy
@Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canDestroy(@NotNull @NotNull Block... blocks)
-