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 a
world ,
including special states. |
org.bukkit.enchantments |
Classes relating to the specialized enhancements to
item stacks , as part of the meta data . |
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , 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 inside
item 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.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
Art.getKey() |
|
@NotNull NamespacedKey |
Keyed.getKey() |
Return the namespaced identifier for this object.
|
@NotNull NamespacedKey |
Material.getKey() |
|
@NotNull NamespacedKey |
Statistic.getKey() |
|
static @NotNull NamespacedKey |
NamespacedKey.minecraft(@NotNull String key) |
Get a key in the Minecraft namespace.
|
static @NotNull NamespacedKey |
NamespacedKey.randomKey() |
Deprecated.
should never be used by plugins, for internal use only!!
|
Modifier and Type | Method | Description |
---|---|---|
static @NotNull KeyedBossBar |
Bukkit.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 KeyedBossBar |
Server.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.
|
T |
Registry.get(@NotNull NamespacedKey key) |
Get the object by its key.
|
T |
Registry.SimpleRegistry.get(@NotNull NamespacedKey key) |
|
static @Nullable Advancement |
Bukkit.getAdvancement(@NotNull NamespacedKey key) |
Get the advancement specified by this key.
|
@Nullable Advancement |
Server.getAdvancement(@NotNull NamespacedKey key) |
Get the advancement specified by this key.
|
static @Nullable KeyedBossBar |
Bukkit.getBossBar(@NotNull NamespacedKey key) |
Gets the
KeyedBossBar specified by this key. |
@Nullable KeyedBossBar |
Server.getBossBar(@NotNull NamespacedKey key) |
Gets the
KeyedBossBar specified by this key. |
static @Nullable LootTable |
Bukkit.getLootTable(@NotNull NamespacedKey key) |
Gets the specified
LootTable . |
@Nullable LootTable |
Server.getLootTable(@NotNull NamespacedKey key) |
Gets the specified
LootTable . |
static <T extends Keyed> |
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> |
Server.getTag(@NotNull String registry,
@NotNull NamespacedKey tag,
@NotNull Class<T> clazz) |
Gets a tag which has already been defined within the server.
|
Advancement |
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 by
UnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String) . |
static boolean |
Bukkit.removeBossBar(@NotNull NamespacedKey key) |
Removes a
KeyedBossBar specified by this key. |
boolean |
Server.removeBossBar(@NotNull NamespacedKey key) |
Removes a
KeyedBossBar specified by this key. |
static boolean |
Bukkit.removeRecipe(@NotNull NamespacedKey key) |
Remove a recipe from the server.
|
boolean |
Server.removeRecipe(@NotNull NamespacedKey key) |
Remove a recipe from the server.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
Biome.getKey() |
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
Enchantment.getKey() |
Modifier and Type | Method | Description |
---|---|---|
static @Nullable Enchantment |
Enchantment.getByKey(@Nullable NamespacedKey key) |
Gets the Enchantment at the specified key
|
Constructor | Description |
---|---|
Enchantment(@NotNull NamespacedKey key) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
EntityType.getKey() |
|
@NotNull NamespacedKey |
Villager.Profession.getKey() |
|
@NotNull NamespacedKey |
Villager.Type.getKey() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
HumanEntity.discoverRecipe(@NotNull NamespacedKey recipe) |
Discover a recipe for this player such that it has not already been
discovered.
|
boolean |
HumanEntity.undiscoverRecipe(@NotNull NamespacedKey recipe) |
Undiscover a recipe for this player such that it has already been
discovered.
|
Modifier and Type | Method | Description |
---|---|---|
int |
HumanEntity.discoverRecipes(@NotNull Collection<NamespacedKey> recipes) |
Discover a collection of recipes for this player such that they have not
already been discovered.
|
int |
HumanEntity.undiscoverRecipes(@NotNull Collection<NamespacedKey> recipes) |
Undiscover a collection of recipes for this player such that they have
already been discovered.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
MemoryKey.getKey() |
Modifier and Type | Method | Description |
---|---|---|
static @Nullable MemoryKey |
MemoryKey.getByKey(@NotNull NamespacedKey namespacedKey) |
Returns a
MemoryKey by a NamespacedKey . |
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
PlayerRecipeDiscoverEvent.getRecipe() |
Get the namespaced key of the discovered recipe.
|
Constructor | Description |
---|---|
PlayerRecipeDiscoverEvent(@NotNull Player who,
@NotNull NamespacedKey recipe) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
CookingRecipe.getKey() |
|
@NotNull NamespacedKey |
ShapedRecipe.getKey() |
|
@NotNull NamespacedKey |
ShapelessRecipe.getKey() |
|
@NotNull NamespacedKey |
StonecuttingRecipe.getKey() |
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.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<NamespacedKey> |
KnowledgeBookMeta.getRecipes() |
Gets all the recipes in the book.
|
Modifier and Type | Method | Description |
---|---|---|
void |
KnowledgeBookMeta.addRecipe(@NotNull NamespacedKey... recipes) |
Adds new recipe to the end of the book.
|
Modifier and Type | Method | Description |
---|---|---|
void |
KnowledgeBookMeta.setRecipes(@NotNull List<NamespacedKey> recipes) |
Clears the existing book recipes, and sets the book to use the provided
recipes.
|
Modifier and Type | Method | Description |
---|---|---|
<T,Z> Z |
CustomItemTagContainer.getCustomTag(@NotNull NamespacedKey key,
@NotNull ItemTagType<T,Z> type) |
Deprecated.
Returns the custom tag's value that is stored on the item.
|
<T,Z> boolean |
CustomItemTagContainer.hasCustomTag(@NotNull NamespacedKey key,
@NotNull ItemTagType<T,Z> type) |
Deprecated.
Returns if the item meta has a custom tag registered matching the
provided parameters.
|
void |
CustomItemTagContainer.removeCustomTag(@NotNull NamespacedKey key) |
Deprecated.
Removes a custom key from the item meta.
|
<T,Z> void |
CustomItemTagContainer.setCustomTag(@NotNull NamespacedKey key,
@NotNull ItemTagType<T,Z> type,
Z value) |
Deprecated.
Stores a custom value on the
ItemMeta . |
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
LootTables.getKey() |
Modifier and Type | Method | Description |
---|---|---|
<T,Z> Z |
PersistentDataContainer.get(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type) |
Returns the metadata value that is stored on the
PersistentDataHolder instance. |
<T,Z> Z |
PersistentDataContainer.getOrDefault(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type,
Z defaultValue) |
Returns the metadata value that is stored on the
PersistentDataHolder instance. |
<T,Z> boolean |
PersistentDataContainer.has(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type) |
Returns if the persistent metadata provider has metadata registered
matching the provided parameters.
|
void |
PersistentDataContainer.remove(@NotNull NamespacedKey key) |
Removes a custom key from the
PersistentDataHolder instance. |
<T,Z> void |
PersistentDataContainer.set(@NotNull NamespacedKey key,
@NotNull PersistentDataType<T,Z> type,
Z value) |
Stores a metadata value on the
PersistentDataHolder instance. |
Copyright © 2020. All rights reserved.