程序包 org.bukkit
接口 UnsafeValues
已过时。
这个接口提供可能在特定运行时间内或含有任意意义的数值的转换(即不安全的参数).
这些值的存在形式和行为不能保证在未来的版本可用。可能会非法命名,抛出异常,有误导参数或其他错误.
-
方法概要
修饰符和类型方法说明void
已过时。createDamageSourceBuilder
(@NotNull DamageType damageType) 已过时。Create a newDamageSource.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) 已过时。Load an advancement represented by the specified string into the server.modifyItemStack
(ItemStack stack, String arguments) 已过时。byte[]
processClass
(PluginDescriptionFile pdf, String path, byte[] clazz) 已过时。boolean
已过时。Delete an advancement which was loaded and saved byloadAdvancement(org.bukkit.NamespacedKey, java.lang.String)
.已过时。
-
方法详细资料
-
toLegacy
已过时。 -
fromLegacy
已过时。 -
fromLegacy
已过时。 -
fromLegacy
已过时。 -
fromLegacy
已过时。 -
getMaterial
已过时。 -
getDataVersion
int getDataVersion()已过时。 -
modifyItemStack
已过时。 -
checkSupported
已过时。 -
processClass
已过时。 -
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.
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
-
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 元素将从以后的版本中删除。Do not use, method will get removed, and the plugin won't run- 参数:
key
- of the potion type- 返回:
- an internal potion data
-
getDamageEffect
已过时。 -
createDamageSourceBuilder
@Internal @NotNull DamageSource.Builder createDamageSourceBuilder(@NotNull @NotNull DamageType damageType) 已过时。Create a newDamageSource.Builder
.- 参数:
damageType
- theDamageType
to use- 返回:
- a
DamageSource.Builder
-
get
已过时。 -
get
已过时。 -
getCustomBiome
已过时。 -
createReputationType
已过时。 -
createReputationEvent
已过时。
-