Package net.glowstone.util
Class GlowUnsafeValues
java.lang.Object
net.glowstone.util.GlowUnsafeValues
- All Implemented Interfaces:
org.bukkit.UnsafeValues
Deprecated.
Implementation of Bukkit's internal-use UnsafeValues.
In CraftBukkit, this uses Mojang identifiers, but here we just stick to Bukkit's.
The implementation may be a bit sketchy but this isn't a problem since the behavior of this class isn't strictly specified.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSupported
(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile) Deprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
Deprecated.net.kyori.adventure.text.flattener.ComponentFlattener
Deprecated.org.bukkit.inventory.ItemStack
deserializeItem
(byte[] bytes) Deprecated.org.bukkit.Material
fromId
(int id) Deprecated.Converts a numerical ID to a material type.org.bukkit.Material
fromLegacy
(org.bukkit.Material material) Deprecated.org.bukkit.Material
fromLegacy
(org.bukkit.material.MaterialData material) Deprecated.org.bukkit.Material
fromLegacy
(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.org.bukkit.block.data.BlockData
fromLegacy
(org.bukkit.Material material, byte data) Deprecated.int
Deprecated.io.papermc.paper.inventory.ItemRarity
getItemRarity
(org.bukkit.Material material) Deprecated.io.papermc.paper.inventory.ItemRarity
getItemStackRarity
(org.bukkit.inventory.ItemStack itemStack) Deprecated.org.bukkit.Material
getMaterial
(String material, int version) Deprecated.org.bukkit.Material
Deprecated.int
Deprecated.org.bukkit.Statistic
Deprecated.Deprecated.getTranslationKey
(org.bukkit.block.Block block) Deprecated.getTranslationKey
(org.bukkit.entity.EntityType entityType) Deprecated.getTranslationKey
(org.bukkit.inventory.ItemStack itemStack) Deprecated.getTranslationKey
(org.bukkit.Material material) Deprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
Deprecated.boolean
Deprecated.boolean
isValidRepairItemStack
(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull org.bukkit.inventory.ItemStack itemStack1) Deprecated.net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
Deprecated.org.bukkit.advancement.Advancement
loadAdvancement
(org.bukkit.NamespacedKey key, String advancement) Deprecated.org.bukkit.inventory.ItemStack
modifyItemStack
(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.int
Deprecated.net.kyori.adventure.text.serializer.plain.PlainComponentSerializer
Deprecated.byte[]
processClass
(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.boolean
removeAdvancement
(org.bukkit.NamespacedKey key) Deprecated.void
Deprecated.byte[]
serializeItem
(org.bukkit.inventory.ItemStack itemStack) Deprecated.tabCompleteInternalMaterialName
(String token, List<String> completions) Deprecated.tabCompleteInternalStatistic
(String token, List<String> completions) Deprecated.org.bukkit.Material
toLegacy
(org.bukkit.Material material) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.UnsafeValues
getVersionFetcher
-
Constructor Details
-
GlowUnsafeValues
public GlowUnsafeValues()Deprecated.
-
-
Method Details
-
getMaterialFromInternalName
Deprecated. -
tabCompleteInternalMaterialName
@Deprecated public List<String> tabCompleteInternalMaterialName(String token, List<String> completions) Deprecated. -
componentFlattener
public net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()Deprecated.- Specified by:
componentFlattener
in interfaceorg.bukkit.UnsafeValues
-
plainComponentSerializer
public net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer()Deprecated.- Specified by:
plainComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
gsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()Deprecated.- Specified by:
gsonComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
colorDownsamplingGsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()Deprecated.- Specified by:
colorDownsamplingGsonComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
legacyComponentSerializer
public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()Deprecated.- Specified by:
legacyComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
reportTimings
public void reportTimings()Deprecated.- Specified by:
reportTimings
in interfaceorg.bukkit.UnsafeValues
-
toLegacy
public org.bukkit.Material toLegacy(org.bukkit.Material material) Deprecated.- Specified by:
toLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.Material material) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.block.data.BlockData fromLegacy(org.bukkit.Material material, byte data) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
getMaterial
Deprecated.- Specified by:
getMaterial
in interfaceorg.bukkit.UnsafeValues
-
fromId
public org.bukkit.Material fromId(int id) Deprecated.Converts a numerical ID to a material type.Should only be used for network protocol.
- Parameters:
id
- the numerical ID of the material- Returns:
- the material
-
getDataVersion
public int getDataVersion()Deprecated.- Specified by:
getDataVersion
in interfaceorg.bukkit.UnsafeValues
-
modifyItemStack
public org.bukkit.inventory.ItemStack modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.- Specified by:
modifyItemStack
in interfaceorg.bukkit.UnsafeValues
-
checkSupported
public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile) Deprecated.- Specified by:
checkSupported
in interfaceorg.bukkit.UnsafeValues
-
processClass
Deprecated.- Specified by:
processClass
in interfaceorg.bukkit.UnsafeValues
-
getStatisticFromInternalName
Deprecated. -
tabCompleteInternalStatistic
@Deprecated public List<String> tabCompleteInternalStatistic(String token, List<String> completions) Deprecated. -
loadAdvancement
public org.bukkit.advancement.Advancement loadAdvancement(org.bukkit.NamespacedKey key, String advancement) Deprecated.- Specified by:
loadAdvancement
in interfaceorg.bukkit.UnsafeValues
-
removeAdvancement
public boolean removeAdvancement(org.bukkit.NamespacedKey key) Deprecated.- Specified by:
removeAdvancement
in interfaceorg.bukkit.UnsafeValues
-
getTimingsServerName
Deprecated.- Specified by:
getTimingsServerName
in interfaceorg.bukkit.UnsafeValues
-
isSupportedApiVersion
Deprecated.- Specified by:
isSupportedApiVersion
in interfaceorg.bukkit.UnsafeValues
-
serializeItem
public byte[] serializeItem(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
serializeItem
in interfaceorg.bukkit.UnsafeValues
-
deserializeItem
public org.bukkit.inventory.ItemStack deserializeItem(byte[] bytes) Deprecated.- Specified by:
deserializeItem
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
nextEntityId
public int nextEntityId()Deprecated.- Specified by:
nextEntityId
in interfaceorg.bukkit.UnsafeValues
-
getItemRarity
public io.papermc.paper.inventory.ItemRarity getItemRarity(org.bukkit.Material material) Deprecated.- Specified by:
getItemRarity
in interfaceorg.bukkit.UnsafeValues
-
getItemStackRarity
public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
getItemStackRarity
in interfaceorg.bukkit.UnsafeValues
-
isValidRepairItemStack
public boolean isValidRepairItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack1) Deprecated.- Specified by:
isValidRepairItemStack
in interfaceorg.bukkit.UnsafeValues
-
getProtocolVersion
public int getProtocolVersion()Deprecated.- Specified by:
getProtocolVersion
in interfaceorg.bukkit.UnsafeValues
-