Documentation
¶
Index ¶
- Variables
- func ID(e Type) (int, bool)
- func Register(id int, e Type)
- func ResultingColour(effects []Effect) (color.RGBA, bool)
- type 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
- type InstantHealingSource
- type LastingType
- type PoisonDamageSource
- type RegenerationHealingSource
- type Type
- type WitherDamageSource
Constants ¶
This section is empty.
Variables ¶
View Source
var Absorption absorption
View Source
var Blindness blindness
View Source
var ConduitPower conduitPower
View Source
var Darkness darkness
View Source
var FatalPoison fatalPoison
View Source
var FireResistance fireResistance
View Source
var Haste haste
View Source
var HealthBoost healthBoost
View Source
var Hunger hunger
View Source
var InstantDamage instantDamage
View Source
var InstantHealth instantHealth
View Source
var Invisibility invisibility
View Source
var JumpBoost jumpBoost
View Source
var Levitation levitation
View Source
var MiningFatigue miningFatigue
View Source
var Nausea nausea
View Source
var NightVision nightVision
View Source
var Poison poison
View Source
var Regeneration regeneration
View Source
var Resistance resistance
View Source
var Saturation saturation
View Source
var SlowFalling slowFalling
View Source
var Slowness slowness
View Source
var Speed speed
View Source
var Strength strength
View Source
var WaterBreathing waterBreathing
View Source
var Weakness weakness
View Source
var Wither wither
Functions ¶
Types ¶
type Effect ¶
type Effect struct {
// contains filtered or unexported fields
}
func NewAmbient ¶
func NewAmbient(t LastingType, lvl int, d time.Duration) Effect
func NewInfinite ¶
func NewInfinite(t LastingType, lvl int) Effect
func NewInstant ¶
func (Effect) ParticlesHidden ¶
func (Effect) TickDuration ¶
func (Effect) WithoutParticles ¶
type InstantDamageSource ¶
type InstantDamageSource struct{}
func (InstantDamageSource) Fire ¶
func (InstantDamageSource) Fire() bool
func (InstantDamageSource) IgnoreTotem ¶
func (InstantDamageSource) IgnoreTotem() bool
func (InstantDamageSource) ReducedByArmour ¶
func (InstantDamageSource) ReducedByArmour() bool
func (InstantDamageSource) ReducedByResistance ¶
func (InstantDamageSource) ReducedByResistance() bool
type InstantHealingSource ¶
type InstantHealingSource struct{}
func (InstantHealingSource) HealingSource ¶
func (InstantHealingSource) HealingSource()
type LastingType ¶
type PoisonDamageSource ¶
type PoisonDamageSource struct {
Fatal bool
}
func (PoisonDamageSource) Fire ¶
func (PoisonDamageSource) Fire() bool
func (PoisonDamageSource) IgnoreTotem ¶
func (PoisonDamageSource) IgnoreTotem() bool
func (PoisonDamageSource) ReducedByArmour ¶
func (PoisonDamageSource) ReducedByArmour() bool
func (PoisonDamageSource) ReducedByResistance ¶
func (PoisonDamageSource) ReducedByResistance() bool
type RegenerationHealingSource ¶
type RegenerationHealingSource struct{}
func (RegenerationHealingSource) HealingSource ¶
func (RegenerationHealingSource) HealingSource()
type WitherDamageSource ¶
type WitherDamageSource struct{}
func (WitherDamageSource) Fire ¶
func (WitherDamageSource) Fire() bool
func (WitherDamageSource) IgnoreTotem ¶
func (WitherDamageSource) IgnoreTotem() bool
func (WitherDamageSource) ReducedByArmour ¶
func (WitherDamageSource) ReducedByArmour() bool
func (WitherDamageSource) ReducedByResistance ¶
func (WitherDamageSource) ReducedByResistance() bool
Source Files
¶
- absorption.go
- blindness.go
- conduit_power.go
- darkness.go
- effect.go
- fatal_poison.go
- fire_resistance.go
- haste.go
- health_boost.go
- hunger.go
- instant_damage.go
- instant_health.go
- invisibility.go
- jump_boost.go
- levitation.go
- mining_fatigue.go
- nausea.go
- night_vision.go
- poison.go
- regeneration.go
- register.go
- resistance.go
- saturation.go
- slow_falling.go
- slowness.go
- speed.go
- strength.go
- water_breathing.go
- weakness.go
- wither.go
Click to show internal directories.
Click to hide internal directories.