Uses of Class
org.bukkit.NamespacedKey
Packages that use NamespacedKey
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to attributes.
Classes used to manipulate the voxels in a
world
,
including special states.Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes concerning an entity's persistent memory.
Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes that allow attaching custom data to items.
Classes relevant to loot table manipulation and generation.
Classes that allow attaching persistent data to various objects.
-
Uses of NamespacedKey in org.bukkit
Methods in org.bukkit that return NamespacedKeyModifier and TypeMethodDescriptionstatic NamespacedKey
NamespacedKey.fromString(String key)
Get a NamespacedKey from the supplied string.static NamespacedKey
NamespacedKey.fromString(String string, Plugin defaultNamespace)
Get a NamespacedKey from the supplied string with a default namespace if a namespace is not defined.Art.getKey()
Fluid.getKey()
GameEvent.getKey()
Keyed.getKey()
Return the namespaced identifier for this object.Material.getKey()
Sound.getKey()
Statistic.getKey()
static NamespacedKey
Get a key in the Minecraft namespace.static NamespacedKey
NamespacedKey.randomKey()
Deprecated.should never be used by plugins, for internal use only!!Methods in org.bukkit with parameters of type NamespacedKeyModifier and TypeMethodDescriptionstatic KeyedBossBar
Bukkit.createBossBar(NamespacedKey key, String title, BarColor color, BarStyle style, BarFlag... flags)
Creates a boss bar instance to display to players.Server.createBossBar(NamespacedKey key, String title, BarColor color, BarStyle style, BarFlag... flags)
Creates a boss bar instance to display to players.Registry.get(NamespacedKey key)
Get the object by its key.Registry.SimpleRegistry.get(NamespacedKey key)
static Advancement
Bukkit.getAdvancement(NamespacedKey key)
Get the advancement specified by this key.Server.getAdvancement(NamespacedKey key)
Get the advancement specified by this key.static KeyedBossBar
Bukkit.getBossBar(NamespacedKey key)
Gets theKeyedBossBar
specified by this key.Server.getBossBar(NamespacedKey key)
Gets theKeyedBossBar
specified by this key.static GameEvent
GameEvent.getByKey(NamespacedKey namespacedKey)
Returns aGameEvent
by aNamespacedKey
.static LootTable
Bukkit.getLootTable(NamespacedKey key)
Gets the specifiedLootTable
.Server.getLootTable(NamespacedKey key)
Gets the specifiedLootTable
.static Recipe
Bukkit.getRecipe(NamespacedKey recipeKey)
Get theRecipe
for the given key.Server.getRecipe(NamespacedKey recipeKey)
Get theRecipe
for the given key.Bukkit.getTag(String registry, NamespacedKey tag, Class<T> clazz)
Gets a tag which has already been defined within the server.Server.getTag(String registry, NamespacedKey tag, Class<T> clazz)
Gets a tag which has already been defined within the server.UnsafeValues.loadAdvancement(NamespacedKey key, String advancement)
Deprecated.Load an advancement represented by the specified string into the server.boolean
UnsafeValues.removeAdvancement(NamespacedKey key)
Deprecated.Delete an advancement which was loaded and saved byUnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)
.static boolean
Bukkit.removeBossBar(NamespacedKey key)
Removes aKeyedBossBar
specified by this key.boolean
Server.removeBossBar(NamespacedKey key)
Removes aKeyedBossBar
specified by this key.static boolean
Bukkit.removeRecipe(NamespacedKey key)
Remove a recipe from the server.boolean
Server.removeRecipe(NamespacedKey key)
Remove a recipe from the server. -
Uses of NamespacedKey in org.bukkit.attribute
Methods in org.bukkit.attribute that return NamespacedKey -
Uses of NamespacedKey in org.bukkit.block
Methods in org.bukkit.block that return NamespacedKey -
Uses of NamespacedKey in org.bukkit.enchantments
Methods in org.bukkit.enchantments that return NamespacedKeyMethods in org.bukkit.enchantments with parameters of type NamespacedKeyModifier and TypeMethodDescriptionstatic Enchantment
Enchantment.getByKey(NamespacedKey key)
Gets the Enchantment at the specified keyConstructors in org.bukkit.enchantments with parameters of type NamespacedKey -
Uses of NamespacedKey in org.bukkit.entity
Methods in org.bukkit.entity that return NamespacedKeyModifier and TypeMethodDescriptionEntityType.getKey()
Villager.Profession.getKey()
Villager.Type.getKey()
Methods in org.bukkit.entity that return types with arguments of type NamespacedKeyModifier and TypeMethodDescriptionHumanEntity.getDiscoveredRecipes()
Get an immutable set of recipes this entity has discovered.Methods in org.bukkit.entity with parameters of type NamespacedKeyModifier and TypeMethodDescriptionboolean
HumanEntity.discoverRecipe(NamespacedKey recipe)
Discover a recipe for this player such that it has not already been discovered.boolean
HumanEntity.hasDiscoveredRecipe(NamespacedKey recipe)
Check whether or not this entity has discovered the specified recipe.boolean
HumanEntity.undiscoverRecipe(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 NamespacedKeyModifier and TypeMethodDescriptionint
HumanEntity.discoverRecipes(Collection<NamespacedKey> recipes)
Discover a collection of recipes for this player such that they have not already been discovered.int
HumanEntity.undiscoverRecipes(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 NamespacedKeyMethods in org.bukkit.entity.memory with parameters of type NamespacedKeyModifier and TypeMethodDescriptionstatic MemoryKey
MemoryKey.getByKey(NamespacedKey namespacedKey)
Returns aMemoryKey
by aNamespacedKey
. -
Uses of NamespacedKey in org.bukkit.event.player
Methods in org.bukkit.event.player that return NamespacedKeyModifier and TypeMethodDescriptionPlayerRecipeDiscoverEvent.getRecipe()
Get the namespaced key of the discovered recipe.Constructors in org.bukkit.event.player with parameters of type NamespacedKey -
Uses of NamespacedKey in org.bukkit.inventory
Methods in org.bukkit.inventory that return NamespacedKeyModifier and TypeMethodDescriptionCookingRecipe.getKey()
ShapedRecipe.getKey()
ShapelessRecipe.getKey()
SmithingRecipe.getKey()
StonecuttingRecipe.getKey()
Constructors in org.bukkit.inventory with parameters of type NamespacedKeyModifierConstructorDescriptionBlastingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
BlastingRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
CampfireRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
CampfireRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
CookingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
Create a cooking recipe to craft the specified ItemStack.CookingRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
Create a cooking recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, int data, float experience, int cookingTime)
Deprecated.ShapedRecipe(NamespacedKey key, ItemStack result)
Create a shaped recipe to craft the specified ItemStack.ShapelessRecipe(NamespacedKey key, ItemStack result)
Create a shapeless recipe to craft the specified ItemStack.SmithingRecipe(NamespacedKey key, ItemStack result, RecipeChoice base, RecipeChoice addition)
Create a smithing recipe to produce the specified result ItemStack.SmokingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
SmokingRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
StonecuttingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input)
Create a cooking recipe to craft the specified ItemStack.StonecuttingRecipe(NamespacedKey key, ItemStack result, 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 NamespacedKeyModifier and TypeMethodDescriptionKnowledgeBookMeta.getRecipes()
Gets all the recipes in the book.Methods in org.bukkit.inventory.meta with parameters of type NamespacedKeyModifier and TypeMethodDescriptionvoid
KnowledgeBookMeta.addRecipe(NamespacedKey... recipes)
Adds new recipe to the end of the book.Method parameters in org.bukkit.inventory.meta with type arguments of type NamespacedKeyModifier and TypeMethodDescriptionvoid
KnowledgeBookMeta.setRecipes(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 NamespacedKeyModifier and TypeMethodDescription<T, Z> Z
CustomItemTagContainer.getCustomTag(NamespacedKey key, ItemTagType<T,Z> type)
Deprecated.Returns the custom tag's value that is stored on the item.<T, Z> boolean
CustomItemTagContainer.hasCustomTag(NamespacedKey key, ItemTagType<T,Z> type)
Deprecated.Returns if the item meta has a custom tag registered matching the provided parameters.void
CustomItemTagContainer.removeCustomTag(NamespacedKey key)
Deprecated.Removes a custom key from the item meta.<T, Z> void
CustomItemTagContainer.setCustomTag(NamespacedKey key, 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 -
Uses of NamespacedKey in org.bukkit.persistence
Methods in org.bukkit.persistence that return types with arguments of type NamespacedKeyModifier and TypeMethodDescriptionPersistentDataContainer.getKeys()
Get a set of keys present on thisPersistentDataContainer
instance.Methods in org.bukkit.persistence with parameters of type NamespacedKeyModifier and TypeMethodDescription<T, Z> Z
PersistentDataContainer.get(NamespacedKey key, PersistentDataType<T,Z> type)
Returns the metadata value that is stored on thePersistentDataHolder
instance.<T, Z> Z
PersistentDataContainer.getOrDefault(NamespacedKey key, PersistentDataType<T,Z> type, Z defaultValue)
Returns the metadata value that is stored on thePersistentDataHolder
instance.<T, Z> boolean
PersistentDataContainer.has(NamespacedKey key, PersistentDataType<T,Z> type)
Returns if the persistent metadata provider has metadata registered matching the provided parameters.void
PersistentDataContainer.remove(NamespacedKey key)
Removes a custom key from thePersistentDataHolder
instance.<T, Z> void
PersistentDataContainer.set(NamespacedKey key, PersistentDataType<T,Z> type, Z value)
Stores a metadata value on thePersistentDataHolder
instance.