java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.FoodProperties

public class FoodProperties extends Object
  • Constructor Details

  • Method Details

    • read

      public static FoodProperties read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, FoodProperties props)
    • getNutrition

      public int getNutrition()
    • setNutrition

      public void setNutrition(int nutrition)
    • getSaturation

      public float getSaturation()
    • setSaturation

      public void setSaturation(float saturation)
    • isCanAlwaysEat

      public boolean isCanAlwaysEat()
    • setCanAlwaysEat

      public void setCanAlwaysEat(boolean canAlwaysEat)
    • getEatSeconds

      public float getEatSeconds()
    • setEatSeconds

      public void setEatSeconds(float eatSeconds)
    • addEffect

      public void addEffect(FoodProperties.PossibleEffect effect)
    • getEffects

      public List<FoodProperties.PossibleEffect> getEffects()
    • setEffects

      public void setEffects(List<FoodProperties.PossibleEffect> effects)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object