接口的使用
org.bukkit.inventory.meta.components.FoodComponent.FoodEffect
使用FoodComponent.FoodEffect的程序包
-
org.bukkit.inventory.meta.components中FoodComponent.FoodEffect的使用
修饰符和类型方法说明FoodComponent.addEffect
(@NotNull PotionEffect effect, float probability) Adds an effect which may be applied by this item when eaten.返回变量类型为FoodComponent.FoodEffect的类型的org.bukkit.inventory.meta.components中的方法修饰符和类型方法说明FoodComponent.getEffects()
Gets the effects which may be applied by this item when eaten.修饰符和类型方法说明void
FoodComponent.setEffects
(@NotNull List<FoodComponent.FoodEffect> effects) Sets the effects which may be applied by this item when eaten.