Package de.Keyle.MyPet.api
Class MyPetGlobal.HungerSystem
java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.HungerSystem
- Enclosing class:
MyPetGlobal
Pet saturation: how it drains, how it is restored, and what starving costs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether saturation affects the radius of the Beacon skill.Whether saturation affects how fast a ridden pet moves.Whether a pet may eat from its own backpack when it holds food valid for its type.Whether starvation damage may actually kill a pet.Scaling component added to starvation damage.Flat damage dealt on each starvation tick.Saturation restored per feed.Seconds between each drop of one point from a pet's saturation.Grace period, in seconds, between a pet reaching zero saturation and the first starvation damage.Whether pets need food at all. -
Method Summary
-
Field Details
-
USE_HUNGER_SYSTEM
Whether pets need food at all. Turning this off disables the hunger system.MyPet.HungerSystem.Active-- defaulttrue. -
HUNGER_SYSTEM_TIME
Seconds between each drop of one point from a pet's saturation.MyPet.HungerSystem.Time-- default60. -
HUNGER_SYSTEM_SATURATION_PER_FEED
Saturation restored per feed.MyPet.HungerSystem.SaturationPerFeed-- default6.0. -
AFFECT_RIDE_SPEED
Whether saturation affects how fast a ridden pet moves.MyPet.HungerSystem.Affect-Ride-Speed-- defaulttrue. -
AFFECT_BEACON_RANGE
Whether saturation affects the radius of the Beacon skill.MyPet.HungerSystem.Affect-Beacon-Range-- defaulttrue. -
HUNGER_SYSTEM_FIXED
Flat damage dealt on each starvation tick.MyPet.HungerSystem.Damage.Fixed-- default1.0. -
HUNGER_SYSTEM_FACTOR
Scaling component added to starvation damage.0.0leaves it purely flat.MyPet.HungerSystem.Damage.Factor-- default0.0. -
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-- default5.0. -
HUNGER_SYSTEM_CAN_KILL
Whether starvation damage may actually kill a pet.MyPet.HungerSystem.Damage.can-kill-- defaultfalse. -
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-- defaulttrue.
-