程序包 org.bukkit
接口 UnsafeValues
已过时。
这个接口提供可能在特定运行时间内或含有任意意义的数值的转换(即不安全的参数)。
这些值的存在形式和行为不能保证在未来的版本可用。可能会非法命名,抛出异常,有误导参数或其他错误。
-
方法概要
修饰符和类型方法说明已过时。已过时。已过时。loadAdvancement
(NamespacedKey key, String advancement) 已过时。Load an advancement represented by the specified string into the server.modifyItemStack
(ItemStack stack, String arguments) 已过时。boolean
已过时。Delete an advancement which was loaded and saved byloadAdvancement(org.bukkit.NamespacedKey, java.lang.String)
.tabCompleteInternalMaterialName
(String token, List<String> completions) 已过时。tabCompleteInternalStatisticOrAchievementName
(String token, List<String> completions) 已过时。
-
方法详细资料
-
getMaterialFromInternalName
已过时。 -
tabCompleteInternalMaterialName
已过时。 -
modifyItemStack
已过时。 -
getStatisticFromInternalName
已过时。 -
getAchievementFromInternalName
已过时。 -
tabCompleteInternalStatisticOrAchievementName
已过时。 -
loadAdvancement
已过时。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 forException
to be thrown.- 参数:
key
- the unique advancement keyadvancement
- representation of the advancement- 返回:
- the loaded advancement or null if an error occurred
-
removeAdvancement
已过时。Delete an advancement which was loaded and saved byloadAdvancement(org.bukkit.NamespacedKey, java.lang.String)
.
This method will only remove advancement from persistent storage. It should be accompanied by a call toServer.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
-