package
0.0.4
Repository: https://github.com/sunproxy/sunfly.git
Documentation: pkg.go.dev

# Functions

Register registers an Effect with a specific ID to translate from and to on disk and network.
ResultingColour calculates the resulting colour of the effects passed and returns a bool specifying if the effects were ambient effects, which will cause their particles to display less frequently.

# Structs

Absorption is a lasting effect that increases the health of an entity over the maximum.
Blindness is a lasting effect that greatly reduces the vision range of the entity affected.
ConduitPower is a lasting effect that grants the affected entity the ability to breathe underwater and allows the entity to break faster when underwater or in the rain.
FatalPoison is a lasting effect that causes the affected entity to lose health gradually.
FireResistance is a lasting effect that grants immunity to fire & lava damage.
Haste is a lasting effect that increases the mining speed of a player by 20% for each level of the effect.
HealthBoost causes the affected entity to have its maximum health changed for a specific duration.
Hunger is a lasting effect that causes an affected player to gradually lose saturation and food.
InstantDamage is an instant effect that causes a living entity to immediately take some damage, depending on the level and the potency of the effect.
InstantHealth is an instant effect that causes the player that it is applied to to immediately regain some health.
Invisibility is a lasting effect that causes the affected entity to turn invisible.
JumpBoost is a lasting effect that causes the affected entity to be able to jump much higher, depending on the level of the effect.
Levitation is a lasting effect that causes the affected entity to slowly levitate upwards.
MiningFatigue is a lasting effect that decreases the mining speed of a player by 10% for each level of the effect.
Nausea is a lasting effect that causes the screen to warp, similarly to when entering a nether portal.
NightVision is a lasting effect that causes the affected entity to see in dark places as though they were fully lit up.
Poison is a lasting effect that causes the affected entity to lose health gradually.
Regeneration is an effect that causes the entity that it is added to to slowly regenerate health.
Resistance is a lasting effect that reduces the damage taken from any sources except for void damage or custom damage.
Saturation is a lasting effect that causes the affected player to regain food and saturation.
SlowFalling is a lasting effect that causes the affected entity to fall very slowly.
Slowness is a lasting effect that decreases the movement speed of a living entity by 15% for each level that the effect has.
Speed is a lasting effect that increases the speed of an entity by 20% for each level that the effect has.
Strength is a lasting effect that increases the damage dealt with melee attacks when applied to an entity.
WaterBreathing is a lasting effect that allows the affected entity to breath underwater until the effect expires.
Weakness is a lasting effect that reduces the damage dealt to other entities with melee attacks.
Wither is a lasting effect that causes an entity to take continuous damage that is capable of killing an entity.

# Interfaces

Effect represents an effect that may be added to a living entity.