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

public class FoodEffective extends Food
Created by Snake1999 on 2016/1/13. Package cn.nukkit.item.food in project nukkit.
  • Field Details

  • Constructor Details

    • FoodEffective

      public FoodEffective(int restoreFood, float restoreSaturation)
  • Method Details

    • addEffect

      public FoodEffective addEffect(CloudEffect effect)
    • addChanceEffect

      public FoodEffective addChanceEffect(float chance, CloudEffect effect)
    • onEatenBy

      public boolean onEatenBy(org.cloudburstmc.api.player.Player player)
      Specified by:
      onEatenBy in interface org.cloudburstmc.api.item.Food
      Overrides:
      onEatenBy in class Food