Uses of Annotation Interface
org.bukkit.Utility
Packages that use Utility
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes involved in manipulating player inventories and item interactions.
-
Uses of Utility in io.papermc.paper.datacomponent
Methods in io.papermc.paper.datacomponent with annotations of type UtilityModifier and TypeMethodDescription<T> T
DataComponentView.getDataOrDefault
(@NotNull DataComponentType.Valued<? extends T> type, T fallback) Gets the value for the data component type on this holder with a fallback value.<T> void
DataComponentHolder.setData
(@NotNull DataComponentType.Valued<T> type, DataComponentBuilder<T> valueBuilder) Sets the value of the data component type for this holder. -
Uses of Utility in org.bukkit
Methods in org.bukkit with annotations of type Utility -
Uses of Utility in org.bukkit.inventory
Methods in org.bukkit.inventory with annotations of type UtilityModifier and TypeMethodDescriptionvoid
ItemStack.addEnchantment
(@NotNull Enchantment enchant, int level) Adds the specifiedEnchantment
to this item stack.void
ItemStack.addEnchantments
(@NotNull Map<Enchantment, Integer> enchantments) Adds the specified enchantments to this item stack.void
ItemStack.addUnsafeEnchantments
(@NotNull Map<Enchantment, Integer> enchantments) Adds the specified enchantments to this item stack in an unsafe manner.<T> T
ItemStack.getDataOrDefault
(@NotNull DataComponentType.Valued<? extends T> type, T fallback) Gets the value for the data component type on this stack with a fallback value.ItemStack.serialize()
<T> void
ItemStack.setData
(@NotNull DataComponentType.Valued<T> type, DataComponentBuilder<T> valueBuilder) Sets the value of the data component type for this itemstack.ItemStack.toString()
Constructors in org.bukkit.inventory with annotations of type Utility