Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.enchantments |
Classes relating to the specialized enhancements to
item stacks , as part of the meta data . |
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 inside
item stacks . |
org.bukkit.loot |
Modifier and Type | Method | Description |
---|---|---|
NamespacedKey |
Keyed.getKey() |
Return the namespaced identifier for this object.
|
NamespacedKey |
Material.getKey() |
|
static NamespacedKey |
NamespacedKey.minecraft(java.lang.String key) |
Get a key in the Minecraft namespace.
|
static NamespacedKey |
NamespacedKey.randomKey() |
Deprecated.
should never be used by plugins, for internal use only!!
|
Modifier and Type | Method | Description |
---|---|---|
static Advancement |
Bukkit.getAdvancement(NamespacedKey key) |
Get the advancement specified by this key.
|
Advancement |
Server.getAdvancement(NamespacedKey key) |
Get the advancement specified by this key.
|
static LootTable |
Bukkit.getLootTable(NamespacedKey key) |
Gets the specified
LootTable . |
LootTable |
Server.getLootTable(NamespacedKey key) |
Gets the specified
LootTable . |
static <T extends Keyed> |
Bukkit.getTag(java.lang.String registry,
NamespacedKey tag,
java.lang.Class<T> clazz) |
Gets a tag which has already been defined within the server.
|
<T extends Keyed> |
Server.getTag(java.lang.String registry,
NamespacedKey tag,
java.lang.Class<T> clazz) |
Gets a tag which has already been defined within the server.
|
Advancement |
UnsafeValues.loadAdvancement(NamespacedKey key,
java.lang.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 by
UnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String) . |
Modifier and Type | Method | Description |
---|---|---|
NamespacedKey |
Enchantment.getKey() |
Modifier and Type | Method | Description |
---|---|---|
static Enchantment |
Enchantment.getByKey(NamespacedKey key) |
Gets the Enchantment at the specified key
|
Constructor | Description |
---|---|
Enchantment(NamespacedKey key) |
Modifier and Type | Method | Description |
---|---|---|
NamespacedKey |
FurnaceRecipe.getKey() |
|
NamespacedKey |
ShapedRecipe.getKey() |
|
NamespacedKey |
ShapelessRecipe.getKey() |
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List<NamespacedKey> |
KnowledgeBookMeta.getRecipes() |
Gets all the recipes in the book.
|
Modifier and Type | Method | Description |
---|---|---|
void |
KnowledgeBookMeta.addRecipe(NamespacedKey... recipes) |
Adds new recipe to the end of the book.
|
Modifier and Type | Method | Description |
---|---|---|
void |
KnowledgeBookMeta.setRecipes(java.util.List<NamespacedKey> recipes) |
Clears the existing book recipes, and sets the book to use the provided
recipes.
|
Modifier and Type | Method | Description |
---|---|---|
NamespacedKey |
LootTables.getKey() |
Copyright © 2018. All rights reserved.