@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.
|
ItemStack |
deserializeItem(byte[] data) |
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.
|
String |
getTimingsServerName() |
Deprecated.
Server name to report to timings v2
|
default VersionFetcher |
getVersionFetcher() |
Deprecated.
Called once by the version command on first use, then cached.
|
static boolean |
isLegacyPlugin(Plugin plugin) |
Deprecated.
|
boolean |
isSupportedApiVersion(String apiVersion) |
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) . |
void |
reportTimings() |
Deprecated.
|
byte[] |
serializeItem(ItemStack item) |
Deprecated.
|
Material |
toLegacy(Material material) |
Deprecated.
|
void reportTimings()
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 keyString getTimingsServerName()
default VersionFetcher getVersionFetcher()
boolean isSupportedApiVersion(String apiVersion)
static boolean isLegacyPlugin(Plugin plugin)
byte[] serializeItem(ItemStack item)
ItemStack deserializeItem(byte[] data)
Copyright © 2020. All rights reserved.