接口的使用
org.bukkit.inventory.meta.components.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.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.