Uses of Class
com.ultikits.ultitools.item.ItemSpec.Builder
Packages that use ItemSpec.Builder
Package
Description
Immutable item descriptions rendered per viewer locale; non-null by default.
-
Uses of ItemSpec.Builder in com.ultikits.ultitools.item
Methods in com.ultikits.ultitools.item that return ItemSpec.BuilderModifier and TypeMethodDescriptionItemSpec.Builder.addLore(MessageKey key, Arg... args) Appends a translated lore line with uniquely named arguments.Appends a deferred lore line.ItemSpec.Builder.amount(int amount) Sets the amount.static ItemSpec.BuilderItemSpec.builder(net.kyori.adventure.key.Key itemType) Returns a builder for the item key, initially with amount 1.static ItemSpec.BuilderItemSpec.builder(org.bukkit.Material material) Shorthand forbuilder(material.getKey()).ItemSpec.Builder.data(io.papermc.paper.datacomponent.DataComponentType.NonValued type) Appends a flag component.<T> ItemSpec.BuilderItemSpec.Builder.data(io.papermc.paper.datacomponent.DataComponentType.Valued<T> type, T value) Appends a component value, applied unchanged and without localization.Sets the glint override, or clears it with null.ItemSpec.Builder.hiddenInTooltip(Set<? extends io.papermc.paper.datacomponent.DataComponentType> types) Replaces the set of components whose tooltip lines are hidden, for exampleDataComponentTypes.ATTRIBUTE_MODIFIERSto hide "+7 Attack Damage".Replaces lore with a defensive copy of the lines.<P,C> ItemSpec.Builder ItemSpec.Builder.marker(org.bukkit.NamespacedKey key, org.bukkit.persistence.PersistentDataType<P, C> type, C value) Adds a marker, replacing a previous marker with the same key in its original position.ItemSpec.Builder.model(@Nullable net.kyori.adventure.key.Key model) Sets ITEM_MODEL, or clears the override with null.Sets the deferred name, or clears it with null.ItemSpec.Builder.name(MessageKey key, Arg... args) Sets a translated name with uniquely named arguments.ItemSpec.Builder.remove(io.papermc.paper.datacomponent.DataComponentType type) Removes a prototype component.ItemSpec.toBuilder()Returns a builder initialized with every attribute of this description.ItemSpec.Builder.tooltipHidden(boolean hidden) Sets whether the whole tooltip is hidden.Constructors in com.ultikits.ultitools.item with parameters of type ItemSpec.Builder