Uses of Class
org.bukkit.NamespacedKey
-
Packages that use NamespacedKey Package Description org.bukkit The root package of the Bukkit API, contains generalized API classes.org.bukkit.block Classes used to manipulate the voxels in aworld, including special states.org.bukkit.enchantments Classes relating to the specialized enhancements toitem stacks, as part of themeta data.org.bukkit.entity Interfaces for non-voxel objects that can exist in aworld, including all players, monsters, projectiles, etc.org.bukkit.entity.memory Classes concerning an entity's persistent memory.org.bukkit.event.player org.bukkit.inventory Classes involved in manipulating player inventories and item interactions.org.bukkit.inventory.meta The interfaces used when manipulating extra data can can be stored insideitem stacks.org.bukkit.inventory.meta.tags Classes that allow attaching custom data to items.org.bukkit.loot Classes relevant to loot table manipulation and generation.org.bukkit.persistence Classes that allow attaching persistent data to various objects. -
-
Uses of NamespacedKey in org.bukkit
Methods in org.bukkit that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyArt. getKey()@NotNull NamespacedKeyKeyed. getKey()Return the namespaced identifier for this object.@NotNull NamespacedKeyMaterial. getKey()@NotNull NamespacedKeyStatistic. getKey()static @NotNull NamespacedKeyNamespacedKey. minecraft(@NotNull String key)Get a key in the Minecraft namespace.static @NotNull NamespacedKeyNamespacedKey. randomKey()Deprecated.should never be used by plugins, for internal use only!!Methods in org.bukkit with parameters of type NamespacedKey Modifier and Type Method Description static @NotNull KeyedBossBarBukkit. createBossBar(@NotNull NamespacedKey key, @Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags)Creates a boss bar instance to display to players.@NotNull KeyedBossBarServer. createBossBar(@NotNull NamespacedKey key, @Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags)Creates a boss bar instance to display to players.TRegistry. get(@NotNull NamespacedKey key)Get the object by its key.TRegistry.SimpleRegistry. get(@NotNull NamespacedKey key)static @Nullable AdvancementBukkit. getAdvancement(@NotNull NamespacedKey key)Get the advancement specified by this key.@Nullable AdvancementServer. getAdvancement(@NotNull NamespacedKey key)Get the advancement specified by this key.static @Nullable KeyedBossBarBukkit. getBossBar(@NotNull NamespacedKey key)Gets theKeyedBossBarspecified by this key.@Nullable KeyedBossBarServer. getBossBar(@NotNull NamespacedKey key)Gets theKeyedBossBarspecified by this key.static @Nullable LootTableBukkit. getLootTable(@NotNull NamespacedKey key)Gets the specifiedLootTable.@Nullable LootTableServer. getLootTable(@NotNull NamespacedKey key)Gets the specifiedLootTable.static <T extends Keyed>
@Nullable Tag<T>Bukkit. getTag(@NotNull String registry, @NotNull NamespacedKey tag, @NotNull Class<T> clazz)Gets a tag which has already been defined within the server.<T extends Keyed>
@Nullable Tag<T>Server. getTag(@NotNull String registry, @NotNull NamespacedKey tag, @NotNull Class<T> clazz)Gets a tag which has already been defined within the server.AdvancementUnsafeValues. loadAdvancement(NamespacedKey key, String advancement)Deprecated.Load an advancement represented by the specified string into the server.booleanUnsafeValues. removeAdvancement(NamespacedKey key)Deprecated.Delete an advancement which was loaded and saved byUnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String).static booleanBukkit. removeBossBar(@NotNull NamespacedKey key)Removes aKeyedBossBarspecified by this key.booleanServer. removeBossBar(@NotNull NamespacedKey key)Removes aKeyedBossBarspecified by this key.static booleanBukkit. removeRecipe(@NotNull NamespacedKey key)Remove a recipe from the server.booleanServer. removeRecipe(@NotNull NamespacedKey key)Remove a recipe from the server. -
Uses of NamespacedKey in org.bukkit.block
Methods in org.bukkit.block that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyBiome. getKey() -
Uses of NamespacedKey in org.bukkit.enchantments
Methods in org.bukkit.enchantments that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyEnchantment. getKey()Methods in org.bukkit.enchantments with parameters of type NamespacedKey Modifier and Type Method Description static @Nullable EnchantmentEnchantment. getByKey(@Nullable NamespacedKey key)Gets the Enchantment at the specified keyConstructors in org.bukkit.enchantments with parameters of type NamespacedKey Constructor Description Enchantment(@NotNull NamespacedKey key) -
Uses of NamespacedKey in org.bukkit.entity
Methods in org.bukkit.entity that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyEntityType. getKey()@NotNull NamespacedKeyVillager.Profession. getKey()@NotNull NamespacedKeyVillager.Type. getKey()Methods in org.bukkit.entity with parameters of type NamespacedKey Modifier and Type Method Description booleanHumanEntity. discoverRecipe(@NotNull NamespacedKey recipe)Discover a recipe for this player such that it has not already been discovered.booleanHumanEntity. undiscoverRecipe(@NotNull NamespacedKey recipe)Undiscover a recipe for this player such that it has already been discovered.Method parameters in org.bukkit.entity with type arguments of type NamespacedKey Modifier and Type Method Description intHumanEntity. discoverRecipes(@NotNull Collection<NamespacedKey> recipes)Discover a collection of recipes for this player such that they have not already been discovered.intHumanEntity. undiscoverRecipes(@NotNull Collection<NamespacedKey> recipes)Undiscover a collection of recipes for this player such that they have already been discovered. -
Uses of NamespacedKey in org.bukkit.entity.memory
Methods in org.bukkit.entity.memory that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyMemoryKey. getKey()Methods in org.bukkit.entity.memory with parameters of type NamespacedKey Modifier and Type Method Description static @Nullable MemoryKeyMemoryKey. getByKey(@NotNull NamespacedKey namespacedKey)Returns aMemoryKeyby aNamespacedKey. -
Uses of NamespacedKey in org.bukkit.event.player
Methods in org.bukkit.event.player that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyPlayerRecipeDiscoverEvent. getRecipe()Get the namespaced key of the discovered recipe.Constructors in org.bukkit.event.player with parameters of type NamespacedKey Constructor Description PlayerRecipeDiscoverEvent(@NotNull Player who, @NotNull NamespacedKey recipe) -
Uses of NamespacedKey in org.bukkit.inventory
Methods in org.bukkit.inventory that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyCookingRecipe. getKey()@NotNull NamespacedKeyShapedRecipe. getKey()@NotNull NamespacedKeyShapelessRecipe. getKey()@NotNull NamespacedKeyStonecuttingRecipe. getKey()Constructors in org.bukkit.inventory with parameters of type NamespacedKey Constructor Description BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime)BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime)CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime)CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime)CookingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime)Create a cooking recipe to craft the specified ItemStack.CookingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime)Create a cooking recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime)Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime)Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime)Deprecated.ShapedRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result)Create a shaped recipe to craft the specified ItemStack.ShapelessRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result)Create a shapeless recipe to craft the specified ItemStack.SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime)SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime)StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input)Create a cooking recipe to craft the specified ItemStack.StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source)Create a Stonecutting recipe to craft the specified ItemStack. -
Uses of NamespacedKey in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type NamespacedKey Modifier and Type Method Description @NotNull List<NamespacedKey>KnowledgeBookMeta. getRecipes()Gets all the recipes in the book.Methods in org.bukkit.inventory.meta with parameters of type NamespacedKey Modifier and Type Method Description voidKnowledgeBookMeta. addRecipe(@NotNull NamespacedKey... recipes)Adds new recipe to the end of the book.Method parameters in org.bukkit.inventory.meta with type arguments of type NamespacedKey Modifier and Type Method Description voidKnowledgeBookMeta. setRecipes(@NotNull List<NamespacedKey> recipes)Clears the existing book recipes, and sets the book to use the provided recipes. -
Uses of NamespacedKey in org.bukkit.inventory.meta.tags
Methods in org.bukkit.inventory.meta.tags with parameters of type NamespacedKey Modifier and Type Method Description <T,Z>
ZCustomItemTagContainer. getCustomTag(@NotNull NamespacedKey key, @NotNull ItemTagType<T,Z> type)Deprecated.Returns the custom tag's value that is stored on the item.<T,Z>
booleanCustomItemTagContainer. hasCustomTag(@NotNull NamespacedKey key, @NotNull ItemTagType<T,Z> type)Deprecated.Returns if the item meta has a custom tag registered matching the provided parameters.voidCustomItemTagContainer. removeCustomTag(@NotNull NamespacedKey key)Deprecated.Removes a custom key from the item meta.<T,Z>
voidCustomItemTagContainer. setCustomTag(@NotNull NamespacedKey key, @NotNull ItemTagType<T,Z> type, Z value)Deprecated.Stores a custom value on theItemMeta. -
Uses of NamespacedKey in org.bukkit.loot
Methods in org.bukkit.loot that return NamespacedKey Modifier and Type Method Description @NotNull NamespacedKeyLootTables. getKey() -
Uses of NamespacedKey in org.bukkit.persistence
Methods in org.bukkit.persistence with parameters of type NamespacedKey Modifier and Type Method Description <T,Z>
ZPersistentDataContainer. get(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type)Returns the metadata value that is stored on thePersistentDataHolderinstance.<T,Z>
ZPersistentDataContainer. getOrDefault(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type, Z defaultValue)Returns the metadata value that is stored on thePersistentDataHolderinstance.<T,Z>
booleanPersistentDataContainer. has(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type)Returns if the persistent metadata provider has metadata registered matching the provided parameters.voidPersistentDataContainer. remove(@NotNull NamespacedKey key)Removes a custom key from thePersistentDataHolderinstance.<T,Z>
voidPersistentDataContainer. set(@NotNull NamespacedKey key, @NotNull PersistentDataType<T,Z> type, Z value)Stores a metadata value on thePersistentDataHolderinstance.
-