Class MyPetGlobal.HungerSystem

java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.HungerSystem
Enclosing class:
MyPetGlobal

public static final class MyPetGlobal.HungerSystem extends Object
Pet saturation: how it drains, how it is restored, and what starving costs.
  • Field Details

    • USE_HUNGER_SYSTEM

      public static final ConfigKey<Boolean> USE_HUNGER_SYSTEM
      Whether pets need food at all. Turning this off disables the hunger system.

      MyPet.HungerSystem.Active -- default true.

    • HUNGER_SYSTEM_TIME

      public static final ConfigKey<Integer> HUNGER_SYSTEM_TIME
      Seconds between each drop of one point from a pet's saturation.

      MyPet.HungerSystem.Time -- default 60.

    • HUNGER_SYSTEM_SATURATION_PER_FEED

      public static final ConfigKey<Double> HUNGER_SYSTEM_SATURATION_PER_FEED
      Saturation restored per feed.

      MyPet.HungerSystem.SaturationPerFeed -- default 6.0.

    • AFFECT_RIDE_SPEED

      public static final ConfigKey<Boolean> AFFECT_RIDE_SPEED
      Whether saturation affects how fast a ridden pet moves.

      MyPet.HungerSystem.Affect-Ride-Speed -- default true.

    • AFFECT_BEACON_RANGE

      public static final ConfigKey<Boolean> AFFECT_BEACON_RANGE
      Whether saturation affects the radius of the Beacon skill.

      MyPet.HungerSystem.Affect-Beacon-Range -- default true.

    • HUNGER_SYSTEM_FIXED

      public static final ConfigKey<Double> HUNGER_SYSTEM_FIXED
      Flat damage dealt on each starvation tick.

      MyPet.HungerSystem.Damage.Fixed -- default 1.0.

    • HUNGER_SYSTEM_FACTOR

      public static final ConfigKey<Double> HUNGER_SYSTEM_FACTOR
      Scaling component added to starvation damage. 0.0 leaves it purely flat.

      MyPet.HungerSystem.Damage.Factor -- default 0.0.

    • HUNGER_SYSTEM_TIME_BEFORE_DAMAGE

      public static final ConfigKey<Double> HUNGER_SYSTEM_TIME_BEFORE_DAMAGE
      Grace period, in seconds, between a pet reaching zero saturation and the first starvation damage.

      MyPet.HungerSystem.Damage.Time-Before-Damage -- default 5.0.

    • HUNGER_SYSTEM_CAN_KILL

      public static final ConfigKey<Boolean> HUNGER_SYSTEM_CAN_KILL
      Whether starvation damage may actually kill a pet.

      MyPet.HungerSystem.Damage.can-kill -- default false.

    • FEED_FROM_INVENTORY

      public static final ConfigKey<Boolean> FEED_FROM_INVENTORY
      Whether a pet may eat from its own backpack when it holds food valid for its type.

      MyPet.HungerSystem.Feed-From-Inventory -- default true.