public class FoodEffective extends Food
| Modifier and Type | Field and Description |
|---|---|
protected Map<Effect,Float> |
effects |
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, 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, relativeIDs, restoreFood, restoreSaturation, rotten_flesh, salmon_cooked, salmon_raw, spider_eye, steak, sweet_berries| Constructor and Description |
|---|
FoodEffective(int restoreFood,
float restoreSaturation) |
| Modifier and Type | Method and Description |
|---|---|
FoodEffective |
addChanceEffect(float chance,
Effect effect) |
FoodEffective |
addEffect(Effect effect) |
protected boolean |
onEatenBy(Player player) |
addRelative, addRelative, eatenBy, getByRelative, getByRelative, getByRelative, getRestoreFood, getRestoreSaturation, registerFood, setRestoreFood, setRestoreSaturationpublic FoodEffective addEffect(Effect effect)
public FoodEffective addChanceEffect(float chance, Effect effect)
Copyright © 2020. All rights reserved.