接口 UnsafeValues
这些值的存在形式和行为不能保证在未来的版本可用。可能会非法命名,抛出异常,有误导参数或其他错误.
-
方法概要
修饰符和类型方法说明void已过时。createDamageSourceBuilder(@NotNull DamageType damageType) 已过时。创建一个新的DamageSource.Builder。已过时。已过时。fromLegacy(Material material) 已过时。fromLegacy(MaterialData material) 已过时。fromLegacy(MaterialData material, boolean itemPriority) 已过时。fromLegacy(Material material, byte data) 已过时。已过时。<B extends Keyed>
Bget(Registry<B> registry, NamespacedKey key) 已过时。getBlockTranslationKey(Material material) 已过时, 待删除: 此 API 元素将从以后的版本中删除。getCreativeCategory(Material material) 已过时, 待删除: 此 API 元素将从以后的版本中删除。已过时。已过时。int已过时。getDefaultAttributeModifiers(Material material, EquipmentSlot slot) 已过时, 待删除: 此 API 元素将从以后的版本中删除。已过时。已过时, 待删除: 此 API 元素将从以后的版本中删除。getItemTranslationKey(Material material) 已过时, 待删除: 此 API 元素将从以后的版本中删除。getMaterial(String material, int version) 已过时。getTranslationKey(Attribute attribute) 已过时, 待删除: 此 API 元素将从以后的版本中删除。getTranslationKey(EntityType entityType) 已过时。getTranslationKey(ItemStack itemStack) 已过时。loadAdvancement(NamespacedKey key, String advancement) 已过时。将指定字符串表示的进度加载到服务器中。modifyItemStack(ItemStack stack, String arguments) 已过时。byte[]processClass(PluginDescriptionFile pdf, String path, byte[] clazz) 已过时。boolean已过时。已过时。
-
方法详细资料
-
toLegacy
已过时。 -
fromLegacy
已过时。 -
fromLegacy
已过时。 -
fromLegacy
已过时。 -
fromLegacy
已过时。 -
getMaterial
已过时。 -
getDataVersion
int getDataVersion()已过时。 -
modifyItemStack
已过时。 -
checkSupported
已过时。 -
processClass
已过时。 -
loadAdvancement
已过时。将指定字符串表示的进度加载到服务器中。 进度格式由 Minecraft 控制,没有指定的布局。
目前是一个 JSON 对象,如 Minecraft wiki 所述。
加载的进度将被存储并在服务器重启和重载后持续存在。
调用者应准备好捕获Exception。- 参数:
key- 进度的唯一键advancement- 进度的表示形式- 返回:
- 加载的进度,如果发生错误则返回 null
原文: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.
Loaded advancements will be stored and persisted across server restarts and reloads.
Callers should be prepared forExceptionto be thrown.
-
removeAdvancement
已过时。删除由loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)加载并保存的进度。
此方法只会从持久存储中删除进度。应该伴随调用Server.reloadData()以便从运行实例中完全删除它。- 参数:
key- 进度的唯一键- 返回:
- 如果找到并删除了匹配此键的文件则返回 true
原文: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 toServer.reloadData()in order to fully remove it from the running instance.
-
getDefaultAttributeModifiers
@Deprecated(since="1.21", forRemoval=true) Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(Material material, EquipmentSlot slot) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getCreativeCategory
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getBlockTranslationKey
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getItemTranslationKey
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getTranslationKey
已过时。 -
getTranslationKey
已过时。 -
getTranslationKey
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getFeatureFlag
已过时。 -
getInternalPotionData
@Internal @Deprecated(since="1.20.2", forRemoval=true) PotionType.InternalPotionData getInternalPotionData(NamespacedKey key) 已过时, 待删除: 此 API 元素将从以后的版本中删除。不要使用,方法将被移除,插件将无法运行。- 参数:
key- 药水类型的键- 返回:
- 内部药水数据
原文:Do not use, method will get removed, and the plugin won't run
-
getDamageEffect
已过时。 -
createDamageSourceBuilder
@Internal @NotNull DamageSource.Builder createDamageSourceBuilder(@NotNull @NotNull DamageType damageType) 已过时。创建一个新的DamageSource.Builder。- 参数:
damageType- 要使用的DamageType- 返回:
- 一个
DamageSource.Builder原文:Create a new
DamageSource.Builder.
-
get
已过时。 -
get
已过时。 -
getCustomBiome
已过时。 -
createReputationType
已过时。 -
createReputationEvent
已过时。
-