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> @Nullable TDataComponentView.getDataOrDefault(DataComponentType.Valued<? extends T> type, @Nullable T fallback) Gets the value for the data component type on this holder with a fallback value.<T> voidDataComponentHolder.setData(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 TypeMethodDescriptionvoidItemStack.addEnchantment(@NotNull Enchantment enchant, int level) Adds the specifiedEnchantmentto this item stack.voidItemStack.addEnchantments(@NotNull Map<Enchantment, Integer> enchantments) Adds the specified enchantments to this item stack.voidItemStack.addUnsafeEnchantments(@NotNull Map<Enchantment, Integer> enchantments) Adds the specified enchantments to this item stack in an unsafe manner.<T> TItemStack.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> voidItemStack.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