程序包 org.bukkit

接口 UnsafeValues


@Deprecated public interface UnsafeValues
已过时。
这个接口提供可能在特定运行时间内或含有任意意义的数值的转换(即不安全的参数)。

这些值的存在形式和行为不能保证在未来的版本可用。可能会非法命名,抛出异常,有误导参数或其他错误。

  • 方法详细资料

    • getMaterialFromInternalName

      Material getMaterialFromInternalName(String name)
      已过时。
    • tabCompleteInternalMaterialName

      List<String> tabCompleteInternalMaterialName(String token, List<String> completions)
      已过时。
    • modifyItemStack

      ItemStack modifyItemStack(ItemStack stack, String arguments)
      已过时。
    • getStatisticFromInternalName

      Statistic getStatisticFromInternalName(String name)
      已过时。
    • getAchievementFromInternalName

      Achievement getAchievementFromInternalName(String name)
      已过时。
    • tabCompleteInternalStatisticOrAchievementName

      List<String> tabCompleteInternalStatisticOrAchievementName(String token, List<String> completions)
      已过时。
    • loadAdvancement

      Advancement loadAdvancement(NamespacedKey key, String advancement)
      已过时。
      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.
      参数:
      key - the unique advancement key
      advancement - representation of the advancement
      返回:
      the loaded advancement or null if an error occurred
    • removeAdvancement

      boolean removeAdvancement(NamespacedKey key)
      已过时。
      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.
      参数:
      key - the unique advancement key
      返回:
      true if a file matching this key was found and deleted