Class GlowUnsafeValues

java.lang.Object
net.glowstone.util.GlowUnsafeValues
All Implemented Interfaces:
org.bukkit.UnsafeValues

@Deprecated public final class GlowUnsafeValues extends Object implements 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 Details

    • GlowUnsafeValues

      public GlowUnsafeValues()
      Deprecated.
  • Method Details

    • getMaterialFromInternalName

      @Deprecated public org.bukkit.Material getMaterialFromInternalName(String name)
      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 interface org.bukkit.UnsafeValues
    • plainComponentSerializer

      public net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer()
      Deprecated.
      Specified by:
      plainComponentSerializer in interface org.bukkit.UnsafeValues
    • gsonComponentSerializer

      public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()
      Deprecated.
      Specified by:
      gsonComponentSerializer in interface org.bukkit.UnsafeValues
    • colorDownsamplingGsonComponentSerializer

      public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()
      Deprecated.
      Specified by:
      colorDownsamplingGsonComponentSerializer in interface org.bukkit.UnsafeValues
    • legacyComponentSerializer

      public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()
      Deprecated.
      Specified by:
      legacyComponentSerializer in interface org.bukkit.UnsafeValues
    • reportTimings

      public void reportTimings()
      Deprecated.
      Specified by:
      reportTimings in interface org.bukkit.UnsafeValues
    • toLegacy

      public org.bukkit.Material toLegacy(org.bukkit.Material material)
      Deprecated.
      Specified by:
      toLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.Material fromLegacy(org.bukkit.Material material)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.block.data.BlockData fromLegacy(org.bukkit.Material material, byte data)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • getMaterial

      public org.bukkit.Material getMaterial(String material, int version)
      Deprecated.
      Specified by:
      getMaterial in interface org.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 interface org.bukkit.UnsafeValues
    • modifyItemStack

      public org.bukkit.inventory.ItemStack modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments)
      Deprecated.
      Specified by:
      modifyItemStack in interface org.bukkit.UnsafeValues
    • checkSupported

      public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile)
      Deprecated.
      Specified by:
      checkSupported in interface org.bukkit.UnsafeValues
    • processClass

      public byte[] processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz)
      Deprecated.
      Specified by:
      processClass in interface org.bukkit.UnsafeValues
    • getStatisticFromInternalName

      @Deprecated public org.bukkit.Statistic getStatisticFromInternalName(String name)
      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 interface org.bukkit.UnsafeValues
    • removeAdvancement

      public boolean removeAdvancement(org.bukkit.NamespacedKey key)
      Deprecated.
      Specified by:
      removeAdvancement in interface org.bukkit.UnsafeValues
    • getTimingsServerName

      public String getTimingsServerName()
      Deprecated.
      Specified by:
      getTimingsServerName in interface org.bukkit.UnsafeValues
    • isSupportedApiVersion

      public boolean isSupportedApiVersion(String s)
      Deprecated.
      Specified by:
      isSupportedApiVersion in interface org.bukkit.UnsafeValues
    • serializeItem

      public byte[] serializeItem(org.bukkit.inventory.ItemStack itemStack)
      Deprecated.
      Specified by:
      serializeItem in interface org.bukkit.UnsafeValues
    • deserializeItem

      public org.bukkit.inventory.ItemStack deserializeItem(byte[] bytes)
      Deprecated.
      Specified by:
      deserializeItem in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.Material material)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.block.Block block)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.entity.EntityType entityType)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.inventory.ItemStack itemStack)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • nextEntityId

      public int nextEntityId()
      Deprecated.
      Specified by:
      nextEntityId in interface org.bukkit.UnsafeValues
    • getItemRarity

      public io.papermc.paper.inventory.ItemRarity getItemRarity(org.bukkit.Material material)
      Deprecated.
      Specified by:
      getItemRarity in interface org.bukkit.UnsafeValues
    • getItemStackRarity

      public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack)
      Deprecated.
      Specified by:
      getItemStackRarity in interface org.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 interface org.bukkit.UnsafeValues
    • getProtocolVersion

      public int getProtocolVersion()
      Deprecated.
      Specified by:
      getProtocolVersion in interface org.bukkit.UnsafeValues