Class FoodEffective
java.lang.Object
org.cloudburstmc.server.item.food.Food
org.cloudburstmc.server.item.food.FoodEffective
- All Implemented Interfaces:
org.cloudburstmc.api.item.Food
Created by Snake1999 on 2016/1/13.
Package cn.nukkit.item.food in project nukkit.
-
Field Summary
FieldsFields inherited from class org.cloudburstmc.server.item.food.Food
apple, apple_golden, apple_golden_enchanted, beef_raw, beetroot, beetroot_soup, bread, cake_slice, carrot, carrot_golden, chicken_cooked, chicken_raw, chorus_fruit, clownfish, cookie, dried_kelp, fish_cooked, fish_raw, honey, melon_slice, metadata, milk, mushroom_stew, mutton_cooked, mutton_raw, porkchop_cooked, porkchop_raw, potato_baked, potato_poisonous, potato_raw, pufferfish, pumpkin_pie, rabbit_cooked, rabbit_raw, rabbit_stew, restoreFood, restoreSaturation, rotten_flesh, salmon_cooked, salmon_raw, spider_eye, steak, sweet_berries -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChanceEffect(float chance, CloudEffect effect)addEffect(CloudEffect effect)booleanonEatenBy(org.cloudburstmc.api.player.Player player)Methods inherited from class org.cloudburstmc.server.item.food.Food
eatenBy, getByRelative, getRestoreFood, getRestoreSaturation, setMetadata, setRestoreFood, setRestoreSaturation
-
Field Details
-
effects
-
-
Constructor Details
-
FoodEffective
public FoodEffective(int restoreFood, float restoreSaturation)
-
-
Method Details