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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSupported(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile) Deprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated.net.kyori.adventure.text.flattener.ComponentFlattenerDeprecated.org.bukkit.inventory.ItemStackdeserializeItem(byte[] bytes) Deprecated.org.bukkit.MaterialfromId(int id) Deprecated.Converts a numerical ID to a material type.org.bukkit.MaterialfromLegacy(org.bukkit.Material material) Deprecated.org.bukkit.MaterialfromLegacy(org.bukkit.material.MaterialData material) Deprecated.org.bukkit.MaterialfromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.org.bukkit.block.data.BlockDatafromLegacy(org.bukkit.Material material, byte data) Deprecated.intDeprecated.io.papermc.paper.inventory.ItemRaritygetItemRarity(org.bukkit.Material material) Deprecated.io.papermc.paper.inventory.ItemRaritygetItemStackRarity(org.bukkit.inventory.ItemStack itemStack) Deprecated.org.bukkit.MaterialgetMaterial(String material, int version) Deprecated.org.bukkit.MaterialDeprecated.intDeprecated.org.bukkit.StatisticDeprecated.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.GsonComponentSerializerDeprecated.booleanDeprecated.booleanisValidRepairItemStack(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull org.bukkit.inventory.ItemStack itemStack1) Deprecated.net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerDeprecated.org.bukkit.advancement.AdvancementloadAdvancement(org.bukkit.NamespacedKey key, String advancement) Deprecated.org.bukkit.inventory.ItemStackmodifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.intDeprecated.net.kyori.adventure.text.serializer.plain.PlainComponentSerializerDeprecated.byte[]processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.booleanremoveAdvancement(org.bukkit.NamespacedKey key) Deprecated.voidDeprecated.byte[]serializeItem(org.bukkit.inventory.ItemStack itemStack) Deprecated.tabCompleteInternalMaterialName(String token, List<String> completions) Deprecated.tabCompleteInternalStatistic(String token, List<String> completions) Deprecated.org.bukkit.MaterialtoLegacy(org.bukkit.Material material) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
componentFlattenerin interfaceorg.bukkit.UnsafeValues
-
plainComponentSerializer
public net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer()Deprecated.- Specified by:
plainComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
gsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()Deprecated.- Specified by:
gsonComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
colorDownsamplingGsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()Deprecated.- Specified by:
colorDownsamplingGsonComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
legacyComponentSerializer
public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()Deprecated.- Specified by:
legacyComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
reportTimings
public void reportTimings()Deprecated.- Specified by:
reportTimingsin interfaceorg.bukkit.UnsafeValues
-
toLegacy
public org.bukkit.Material toLegacy(org.bukkit.Material material) Deprecated.- Specified by:
toLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.Material material) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.block.data.BlockData fromLegacy(org.bukkit.Material material, byte data) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
getMaterial
Deprecated.- Specified by:
getMaterialin 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:
getDataVersionin interfaceorg.bukkit.UnsafeValues
-
modifyItemStack
public org.bukkit.inventory.ItemStack modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.- Specified by:
modifyItemStackin interfaceorg.bukkit.UnsafeValues
-
checkSupported
public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile) Deprecated.- Specified by:
checkSupportedin interfaceorg.bukkit.UnsafeValues
-
processClass
Deprecated.- Specified by:
processClassin 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:
loadAdvancementin interfaceorg.bukkit.UnsafeValues
-
removeAdvancement
public boolean removeAdvancement(org.bukkit.NamespacedKey key) Deprecated.- Specified by:
removeAdvancementin interfaceorg.bukkit.UnsafeValues
-
getTimingsServerName
Deprecated.- Specified by:
getTimingsServerNamein interfaceorg.bukkit.UnsafeValues
-
isSupportedApiVersion
Deprecated.- Specified by:
isSupportedApiVersionin interfaceorg.bukkit.UnsafeValues
-
serializeItem
public byte[] serializeItem(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
serializeItemin interfaceorg.bukkit.UnsafeValues
-
deserializeItem
public org.bukkit.inventory.ItemStack deserializeItem(byte[] bytes) Deprecated.- Specified by:
deserializeItemin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
nextEntityId
public int nextEntityId()Deprecated.- Specified by:
nextEntityIdin interfaceorg.bukkit.UnsafeValues
-
getItemRarity
public io.papermc.paper.inventory.ItemRarity getItemRarity(org.bukkit.Material material) Deprecated.- Specified by:
getItemRarityin interfaceorg.bukkit.UnsafeValues
-
getItemStackRarity
public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
getItemStackRarityin interfaceorg.bukkit.UnsafeValues
-
isValidRepairItemStack
public boolean isValidRepairItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack1) Deprecated.- Specified by:
isValidRepairItemStackin interfaceorg.bukkit.UnsafeValues
-
getProtocolVersion
public int getProtocolVersion()Deprecated.- Specified by:
getProtocolVersionin interfaceorg.bukkit.UnsafeValues
-