@Deprecated public interface UnsafeValues
Their existence and behavior is not guaranteed across future versions. They may be poorly named, throw exceptions, have misleading parameters, or any other bad programming practice.
Modifier and Type | Method | Description |
---|---|---|
void |
checkSupported(PluginDescriptionFile pdf) |
Deprecated.
|
Material |
fromLegacy(Material material) |
Deprecated.
|
Material |
fromLegacy(MaterialData material) |
Deprecated.
|
Material |
fromLegacy(MaterialData material,
boolean itemPriority) |
Deprecated.
|
BlockData |
fromLegacy(Material material,
byte data) |
Deprecated.
|
int |
getDataVersion() |
Deprecated.
|
Material |
getMaterial(String material,
int version) |
Deprecated.
|
Advancement |
loadAdvancement(NamespacedKey key,
String advancement) |
Deprecated.
Load an advancement represented by the specified string into the server.
|
ItemStack |
modifyItemStack(ItemStack stack,
String arguments) |
Deprecated.
|
byte[] |
processClass(PluginDescriptionFile pdf,
String path,
byte[] clazz) |
Deprecated.
|
boolean |
removeAdvancement(NamespacedKey key) |
Deprecated.
Delete an advancement which was loaded and saved by
loadAdvancement(org.bukkit.NamespacedKey, java.lang.String) . |
Material |
toLegacy(Material material) |
Deprecated.
|
Material fromLegacy(MaterialData material)
Material fromLegacy(MaterialData material, boolean itemPriority)
int getDataVersion()
void checkSupported(PluginDescriptionFile pdf) throws InvalidPluginException
InvalidPluginException
byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz)
Advancement loadAdvancement(NamespacedKey key, String advancement)
Exception
to be thrown.key
- the unique advancement keyadvancement
- representation of the advancementboolean removeAdvancement(NamespacedKey key)
loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)
.
Server.reloadData()
in order
to fully remove it from the running instance.key
- the unique advancement keyCopyright © 2020. All rights reserved.