Package org.bukkit

Interface UnsafeValues


@Deprecated public interface UnsafeValues
Deprecated.
This interface provides value conversions that may be specific to a runtime, or have arbitrary meaning (read: magic values).

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.

  • Method Details

    • toLegacy

      Material toLegacy(Material material)
      Deprecated.
    • fromLegacy

      Material fromLegacy(Material material)
      Deprecated.
    • fromLegacy

      Material fromLegacy(MaterialData material)
      Deprecated.
    • fromLegacy

      Material fromLegacy(MaterialData material, boolean itemPriority)
      Deprecated.
    • fromLegacy

      BlockData fromLegacy(Material material, byte data)
      Deprecated.
    • getMaterial

      Material getMaterial(String material, int version)
      Deprecated.
    • getDataVersion

      int getDataVersion()
      Deprecated.
    • modifyItemStack

      ItemStack modifyItemStack(ItemStack stack, String arguments)
      Deprecated.
    • checkSupported

      void checkSupported(PluginDescriptionFile pdf) throws InvalidPluginException
      Deprecated.
      Throws:
      InvalidPluginException
    • processClass

      byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz)
      Deprecated.
    • loadAdvancement

      Advancement loadAdvancement(NamespacedKey key, String advancement)
      Deprecated.
      Load an advancement represented by the specified string into the server. The advancement format is governed by Minecraft and has no specified layout.
      It is currently a JSON object, as described by the Minecraft Wiki: http://minecraft.gamepedia.com/Advancements
      Loaded advancements will be stored and persisted across server restarts and reloads.
      Callers should be prepared for Exception to be thrown.
      Parameters:
      key - the unique advancement key
      advancement - representation of the advancement
      Returns:
      the loaded advancement or null if an error occurred
    • removeAdvancement

      boolean removeAdvancement(NamespacedKey key)
      Deprecated.
      Delete an advancement which was loaded and saved by loadAdvancement(org.bukkit.NamespacedKey, java.lang.String).
      This method will only remove advancement from persistent storage. It should be accompanied by a call to Server.reloadData() in order to fully remove it from the running instance.
      Parameters:
      key - the unique advancement key
      Returns:
      true if a file matching this key was found and deleted
    • getDefaultAttributeModifiers

      Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(Material material, EquipmentSlot slot)
      Deprecated.
    • getCreativeCategory

      CreativeCategory getCreativeCategory(Material material)
      Deprecated.
    • getBlockTranslationKey

      String getBlockTranslationKey(Material material)
      Deprecated.
    • getItemTranslationKey

      String getItemTranslationKey(Material material)
      Deprecated.
    • getTranslationKey

      String getTranslationKey(EntityType entityType)
      Deprecated.
    • getTranslationKey

      String getTranslationKey(ItemStack itemStack)
      Deprecated.