Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2026 v1.0.0 Jul 30, 2026 Changes in this version + var Absorption absorption + var Blindness blindness + var ConduitPower conduitPower + var Darkness darkness + var FatalPoison fatalPoison + var FireResistance fireResistance + var Haste haste + var HealthBoost healthBoost + var Hunger hunger + var InstantDamage instantDamage + var InstantHealth instantHealth + var Invisibility invisibility + var JumpBoost jumpBoost + var Levitation levitation + var MiningFatigue miningFatigue + var Nausea nausea + var NightVision nightVision + var Poison poison + var Regeneration regeneration + var Resistance resistance + var Saturation saturation + var SlowFalling slowFalling + var Slowness slowness + var Speed speed + var Strength strength + var WaterBreathing waterBreathing + var Weakness weakness + var Wither wither + func ID(e Type) (int, bool) + func Register(id int, e Type) + func ResultingColour(effects []Effect) (color.RGBA, bool) + type Effect struct + func New(t LastingType, lvl int, d time.Duration) Effect + func NewAmbient(t LastingType, lvl int, d time.Duration) Effect + func NewInfinite(t LastingType, lvl int) Effect + func NewInstant(t Type, lvl int) Effect + func NewInstantWithPotency(t Type, lvl int, potency float64) Effect + func (e Effect) Ambient() bool + func (e Effect) Duration() time.Duration + func (e Effect) Infinite() bool + func (e Effect) Level() int + func (e Effect) ParticlesHidden() bool + func (e Effect) Tick() int + func (e Effect) TickDuration() Effect + func (e Effect) Type() Type + func (e Effect) WithoutParticles() Effect + type InstantDamageSource struct + func (InstantDamageSource) Fire() bool + func (InstantDamageSource) IgnoreTotem() bool + func (InstantDamageSource) ReducedByArmour() bool + func (InstantDamageSource) ReducedByResistance() bool + type InstantHealingSource struct + func (InstantHealingSource) HealingSource() + type LastingType interface + End func(e world.Entity, lvl int) + Start func(e world.Entity, lvl int) + type PoisonDamageSource struct + Fatal bool + func (PoisonDamageSource) Fire() bool + func (PoisonDamageSource) IgnoreTotem() bool + func (PoisonDamageSource) ReducedByArmour() bool + func (PoisonDamageSource) ReducedByResistance() bool + type RegenerationHealingSource struct + func (RegenerationHealingSource) HealingSource() + type Type interface + Apply func(e world.Entity, eff Effect) + RGBA func() color.RGBA + func ByID(id int) (Type, bool) + type WitherDamageSource struct + func (WitherDamageSource) Fire() bool + func (WitherDamageSource) IgnoreTotem() bool + func (WitherDamageSource) ReducedByArmour() bool + func (WitherDamageSource) ReducedByResistance() bool