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.Builderattributes(@NotNull List<@NotNull ItemAttribute> attributes) @NotNull ItemMetabuild()default @NotNull ItemMeta.BuildercanDestroy(@NotNull Set<@NotNull Block> blocks) default @NotNull ItemMeta.BuildercanDestroy(@NotNull Block... blocks) default @NotNull ItemMeta.BuildercanPlaceOn(@NotNull Set<@NotNull Block> blocks) default @NotNull ItemMeta.BuildercanPlaceOn(@NotNull Block... blocks) default @NotNull ItemMeta.Builderdefault @NotNull ItemMeta.BuildercustomModelData(int customModelData) default @NotNull ItemMeta.Builderdamage(int damage) default @NotNull ItemMeta.BuilderdisplayName(@Nullable Component displayName) default @NotNull ItemMeta.Builderenchantment(@NotNull Enchantment enchantment, short level) default @NotNull ItemMeta.Builderenchantments(@NotNull Map<Enchantment, Short> enchantments) default @NotNull ItemMeta.BuilderhideFlag(int hideFlag) default @NotNull ItemMeta.BuilderhideFlag(@NotNull ItemHideFlag... hideFlags) default @NotNull ItemMeta.Builderdefault @NotNull ItemMeta.Builderdefault <T> @NotNull ItemMeta.Builderdefault @NotNull ItemMeta.Builderunbreakable(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)
-