Versions in this module Expand all Collapse all v0 v0.0.4 Jan 4, 2021 Changes in this version + func Register(id int, e Effect) + func ResultingColour(effects []Effect) (color.RGBA, bool) + type Absorption struct + func (Absorption) Apply(living world.Entity) + func (Absorption) End(world.Entity) + func (Absorption) Instant() bool + func (a Absorption) Absorbs(src damage.Source) bool + func (a Absorption) RGBA() color.RGBA + func (a Absorption) Start(e world.Entity) + func (a Absorption) Stop(e world.Entity) + func (a Absorption) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l Absorption) AmbientSource() bool + func (l Absorption) Duration() time.Duration + func (l Absorption) Level() int + func (l Absorption) ShowParticles() bool + type Blindness struct + func (Blindness) Apply(living world.Entity) + func (Blindness) End(world.Entity) + func (Blindness) Instant() bool + func (Blindness) RGBA() color.RGBA + func (Blindness) Start(world.Entity) + func (b Blindness) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l Blindness) AmbientSource() bool + func (l Blindness) Duration() time.Duration + func (l Blindness) Level() int + func (l Blindness) ShowParticles() bool + type ConduitPower struct + func (ConduitPower) Apply(living world.Entity) + func (ConduitPower) End(world.Entity) + func (ConduitPower) Instant() bool + func (ConduitPower) Start(world.Entity) + func (c ConduitPower) Multiplier() float64 + func (c ConduitPower) RGBA() color.RGBA + func (c ConduitPower) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l ConduitPower) AmbientSource() bool + func (l ConduitPower) Duration() time.Duration + func (l ConduitPower) Level() int + func (l ConduitPower) ShowParticles() bool + type Effect interface + AmbientSource func() bool + Apply func(e world.Entity) + Duration func() time.Duration + End func(e world.Entity) + Instant func() bool + Level func() int + RGBA func() color.RGBA + ShowParticles func() bool + Start func(e world.Entity) + WithSettings func(d time.Duration, level int, ambient bool) Effect + type FatalPoison struct + func (FatalPoison) End(world.Entity) + func (FatalPoison) Instant() bool + func (FatalPoison) Start(world.Entity) + func (l FatalPoison) AmbientSource() bool + func (l FatalPoison) Duration() time.Duration + func (l FatalPoison) Level() int + func (l FatalPoison) ShowParticles() bool + func (p FatalPoison) Apply(e world.Entity) + func (p FatalPoison) RGBA() color.RGBA + func (p FatalPoison) WithSettings(d time.Duration, level int, ambient bool) Effect + type FireResistance struct + func (FireResistance) Apply(living world.Entity) + func (FireResistance) End(world.Entity) + func (FireResistance) Instant() bool + func (FireResistance) Start(world.Entity) + func (f FireResistance) RGBA() color.RGBA + func (f FireResistance) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l FireResistance) AmbientSource() bool + func (l FireResistance) Duration() time.Duration + func (l FireResistance) Level() int + func (l FireResistance) ShowParticles() bool + type Haste struct + func (Haste) Apply(living world.Entity) + func (Haste) End(world.Entity) + func (Haste) Instant() bool + func (Haste) RGBA() color.RGBA + func (Haste) Start(world.Entity) + func (h Haste) Multiplier() float64 + func (h Haste) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l Haste) AmbientSource() bool + func (l Haste) Duration() time.Duration + func (l Haste) Level() int + func (l Haste) ShowParticles() bool + type HealthBoost struct + func (HealthBoost) Apply(living world.Entity) + func (HealthBoost) Instant() bool + func (HealthBoost) RGBA() color.RGBA + func (h HealthBoost) End(e world.Entity) + func (h HealthBoost) Start(e world.Entity) + func (h HealthBoost) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l HealthBoost) AmbientSource() bool + func (l HealthBoost) Duration() time.Duration + func (l HealthBoost) Level() int + func (l HealthBoost) ShowParticles() bool + type Hunger struct + func (Hunger) End(world.Entity) + func (Hunger) Instant() bool + func (Hunger) RGBA() color.RGBA + func (Hunger) Start(world.Entity) + func (h Hunger) Apply(e world.Entity) + func (h Hunger) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l Hunger) AmbientSource() bool + func (l Hunger) Duration() time.Duration + func (l Hunger) Level() int + func (l Hunger) ShowParticles() bool + type InstantDamage struct + Potency float64 + func (InstantDamage) AmbientSource() bool + func (InstantDamage) Duration() time.Duration + func (InstantDamage) End(world.Entity) + func (InstantDamage) Instant() bool + func (InstantDamage) RGBA() color.RGBA + func (InstantDamage) ShowParticles() bool + func (InstantDamage) Start(world.Entity) + func (i InstantDamage) Apply(e world.Entity) + func (i InstantDamage) Level() int + func (i InstantDamage) WithSettings(_ time.Duration, level int, _ bool) Effect + type InstantHealth struct + Potency float64 + func (InstantHealth) AmbientSource() bool + func (InstantHealth) Duration() time.Duration + func (InstantHealth) End(world.Entity) + func (InstantHealth) Instant() bool + func (InstantHealth) RGBA() color.RGBA + func (InstantHealth) ShowParticles() bool + func (InstantHealth) Start(world.Entity) + func (i InstantHealth) Apply(e world.Entity) + func (i InstantHealth) Level() int + func (i InstantHealth) WithSettings(_ time.Duration, level int, _ bool) Effect + type Invisibility struct + func (Invisibility) Apply(living world.Entity) + func (Invisibility) End(e world.Entity) + func (Invisibility) Instant() bool + func (Invisibility) RGBA() color.RGBA + func (Invisibility) Start(e world.Entity) + func (i Invisibility) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l Invisibility) AmbientSource() bool + func (l Invisibility) Duration() time.Duration + func (l Invisibility) Level() int + func (l Invisibility) ShowParticles() bool + type JumpBoost struct + func (JumpBoost) Apply(living world.Entity) + func (JumpBoost) End(world.Entity) + func (JumpBoost) Instant() bool + func (JumpBoost) RGBA() color.RGBA + func (JumpBoost) Start(world.Entity) + func (j JumpBoost) WithSettings(d time.Duration, level int, ambient bool) Effect + func (l JumpBoost) AmbientSource() bool + func (l JumpBoost) Duration() time.Duration + func (l JumpBoost) Level() int + func (l JumpBoost) ShowParticles() bool + type Levitation struct + func (Levitation) Apply(living world.Entity) + func (Levitation) End(world.Entity) + func (Levitation) Instant() bool + func (Levitation) RGBA() color.RGBA + func (Levitation) Start(world.Entity) + func (l Levitation) AmbientSource() bool + func (l Levitation) Duration() time.Duration + func (l Levitation) Level() int + func (l Levitation) ShowParticles() bool + func (l Levitation) WithSettings(d time.Duration, level int, ambient bool) Effect + type MiningFatigue struct + func (MiningFatigue) Apply(living world.Entity) + func (MiningFatigue) End(world.Entity) + func (MiningFatigue) Instant() bool + func (MiningFatigue) RGBA() color.RGBA + func (MiningFatigue) Start(world.Entity) + func (l MiningFatigue) AmbientSource() bool + func (l MiningFatigue) Duration() time.Duration + func (l MiningFatigue) Level() int + func (l MiningFatigue) ShowParticles() bool + func (m MiningFatigue) Multiplier() float64 + func (m MiningFatigue) WithSettings(d time.Duration, level int, ambient bool) Effect + type Nausea struct + func (Nausea) Apply(living world.Entity) + func (Nausea) End(world.Entity) + func (Nausea) Instant() bool + func (Nausea) RGBA() color.RGBA + func (Nausea) Start(world.Entity) + func (l Nausea) AmbientSource() bool + func (l Nausea) Duration() time.Duration + func (l Nausea) Level() int + func (l Nausea) ShowParticles() bool + func (n Nausea) WithSettings(d time.Duration, level int, ambient bool) Effect + type NightVision struct + func (NightVision) Apply(living world.Entity) + func (NightVision) End(world.Entity) + func (NightVision) Instant() bool + func (NightVision) RGBA() color.RGBA + func (NightVision) Start(world.Entity) + func (l NightVision) AmbientSource() bool + func (l NightVision) Duration() time.Duration + func (l NightVision) Level() int + func (l NightVision) ShowParticles() bool + func (n NightVision) WithSettings(d time.Duration, level int, ambient bool) Effect + type Poison struct + func (Poison) End(world.Entity) + func (Poison) Instant() bool + func (Poison) Start(world.Entity) + func (l Poison) AmbientSource() bool + func (l Poison) Duration() time.Duration + func (l Poison) Level() int + func (l Poison) ShowParticles() bool + func (p Poison) Apply(e world.Entity) + func (p Poison) RGBA() color.RGBA + func (p Poison) WithSettings(d time.Duration, level int, ambient bool) Effect + type Regeneration struct + func (Regeneration) End(world.Entity) + func (Regeneration) Instant() bool + func (Regeneration) RGBA() color.RGBA + func (Regeneration) Start(world.Entity) + func (l Regeneration) AmbientSource() bool + func (l Regeneration) Duration() time.Duration + func (l Regeneration) Level() int + func (l Regeneration) ShowParticles() bool + func (r Regeneration) Apply(e world.Entity) + func (r Regeneration) WithSettings(d time.Duration, level int, ambient bool) Effect + type Resistance struct + func (Resistance) Apply(living world.Entity) + func (Resistance) End(world.Entity) + func (Resistance) Instant() bool + func (Resistance) RGBA() color.RGBA + func (Resistance) Start(world.Entity) + func (l Resistance) AmbientSource() bool + func (l Resistance) Duration() time.Duration + func (l Resistance) Level() int + func (l Resistance) ShowParticles() bool + func (r Resistance) Multiplier(e damage.Source) float64 + func (r Resistance) WithSettings(d time.Duration, level int, ambient bool) Effect + type Saturation struct + func (Saturation) End(world.Entity) + func (Saturation) Instant() bool + func (Saturation) Start(world.Entity) + func (l Saturation) AmbientSource() bool + func (l Saturation) Duration() time.Duration + func (l Saturation) Level() int + func (l Saturation) ShowParticles() bool + func (s Saturation) Apply(e world.Entity) + func (s Saturation) RGBA() color.RGBA + func (s Saturation) WithSettings(d time.Duration, level int, ambient bool) Effect + type SlowFalling struct + func (SlowFalling) Apply(living world.Entity) + func (SlowFalling) End(world.Entity) + func (SlowFalling) Instant() bool + func (SlowFalling) RGBA() color.RGBA + func (SlowFalling) Start(world.Entity) + func (l SlowFalling) AmbientSource() bool + func (l SlowFalling) Duration() time.Duration + func (l SlowFalling) Level() int + func (l SlowFalling) ShowParticles() bool + func (s SlowFalling) WithSettings(d time.Duration, level int, ambient bool) Effect + type Slowness struct + func (Slowness) Apply(living world.Entity) + func (Slowness) End(world.Entity) + func (Slowness) Instant() bool + func (Slowness) RGBA() color.RGBA + func (l Slowness) AmbientSource() bool + func (l Slowness) Duration() time.Duration + func (l Slowness) Level() int + func (l Slowness) ShowParticles() bool + func (s Slowness) Start(e world.Entity) + func (s Slowness) Stop(e world.Entity) + func (s Slowness) WithSettings(d time.Duration, level int, ambient bool) Effect + type Speed struct + func (Speed) Apply(living world.Entity) + func (Speed) Instant() bool + func (Speed) RGBA() color.RGBA + func (l Speed) AmbientSource() bool + func (l Speed) Duration() time.Duration + func (l Speed) Level() int + func (l Speed) ShowParticles() bool + func (s Speed) End(e world.Entity) + func (s Speed) Start(e world.Entity) + func (s Speed) WithSettings(d time.Duration, level int, ambient bool) Effect + type Strength struct + func (Strength) Apply(living world.Entity) + func (Strength) End(world.Entity) + func (Strength) Instant() bool + func (Strength) RGBA() color.RGBA + func (Strength) Start(world.Entity) + func (l Strength) AmbientSource() bool + func (l Strength) Duration() time.Duration + func (l Strength) Level() int + func (l Strength) ShowParticles() bool + func (s Strength) Multiplier() float64 + func (s Strength) WithSettings(d time.Duration, level int, ambient bool) Effect + type WaterBreathing struct + func (WaterBreathing) Apply(living world.Entity) + func (WaterBreathing) End(world.Entity) + func (WaterBreathing) Instant() bool + func (WaterBreathing) Start(world.Entity) + func (l WaterBreathing) AmbientSource() bool + func (l WaterBreathing) Duration() time.Duration + func (l WaterBreathing) Level() int + func (l WaterBreathing) ShowParticles() bool + func (w WaterBreathing) RGBA() color.RGBA + func (w WaterBreathing) WithSettings(d time.Duration, level int, ambient bool) Effect + type Weakness struct + func (Weakness) Apply(living world.Entity) + func (Weakness) End(world.Entity) + func (Weakness) Instant() bool + func (Weakness) RGBA() color.RGBA + func (Weakness) Start(world.Entity) + func (l Weakness) AmbientSource() bool + func (l Weakness) Duration() time.Duration + func (l Weakness) Level() int + func (l Weakness) ShowParticles() bool + func (w Weakness) Multiplier() float64 + func (w Weakness) WithSettings(d time.Duration, level int, ambient bool) Effect + type Wither struct + func (Wither) End(world.Entity) + func (Wither) Instant() bool + func (Wither) RGBA() color.RGBA + func (Wither) Start(world.Entity) + func (l Wither) AmbientSource() bool + func (l Wither) Duration() time.Duration + func (l Wither) Level() int + func (l Wither) ShowParticles() bool + func (w Wither) Apply(e world.Entity) + func (w Wither) WithSettings(d time.Duration, level int, ambient bool) Effect