枚举的使用
org.bukkit.potion.PotionType
使用PotionType的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以存储在
物品堆的额外数据的接口.代表每种
药水属性和操作的类的集合.- 
org.bukkit中PotionType的使用类型参数类型为PotionType的org.bukkit中的字段
- 
org.bukkit.entity中PotionType的使用返回PotionType的org.bukkit.entity中的方法修饰符和类型方法说明AreaEffectCloud.getBasePotionType()返回基本药水的药水类型.Arrow.getBasePotionType()Returns the potion type about the base potion参数类型为PotionType的org.bukkit.entity中的方法修饰符和类型方法说明voidAreaEffectCloud.setBasePotionType(@Nullable PotionType type) 设置基本药水类型.voidArrow.setBasePotionType(@Nullable PotionType type) Sets the underlying potion type
- 
org.bukkit.inventory.meta中PotionType的使用参数类型为PotionType的org.bukkit.inventory.meta中的方法
- 
org.bukkit.potion中PotionType的使用返回PotionType的org.bukkit.potion中的方法修饰符和类型方法说明static @Nullable PotionTypePotionType.getByEffect(@Nullable PotionEffectType effectType) 已过时。有误导性PotionData.getType()已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the type of the potion, Type matches up with each kind of craftable potionstatic PotionType返回带有指定名称的该类型的枚举常量。static PotionType[]PotionType.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为PotionType的org.bukkit.potion中的方法修饰符和类型方法说明PotionBrewer.getEffects(@NotNull PotionType type, boolean upgraded, boolean extended) 已过时。时长延长/升阶的药水已经有其专属的PotionType.参数类型为PotionType的org.bukkit.potion中的构造器限定符构造器说明PotionData(@NotNull PotionType type) 已过时, 待删除: 此 API 元素将从以后的版本中删除。PotionData(@NotNull PotionType type, boolean extended, boolean upgraded) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Instantiates a final PotionData object to contain information about a Potion