Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AquaAffinity ¶ added in v0.3.0
type AquaAffinity struct{}
AquaAffinity is a helmet enchantment that increases underwater mining speed.
func (AquaAffinity) CompatibleWith ¶ added in v0.3.0
func (e AquaAffinity) CompatibleWith(s item.Stack) bool
CompatibleWith ...
type BlastProtection ¶
type BlastProtection struct{}
BlastProtection is an armour enchantment that decreases explosion damage.
func (BlastProtection) CompatibleWith ¶
func (e BlastProtection) CompatibleWith(s item.Stack) bool
CompatibleWith ...
type Efficiency ¶ added in v0.3.0
type Efficiency struct{}
Efficiency is an enchantment that increases mining speed.
func (Efficiency) Addend ¶ added in v0.3.0
func (e Efficiency) Addend(level int) float64
Addend returns the mining speed addend from efficiency.
func (Efficiency) CompatibleWith ¶ added in v0.3.0
func (e Efficiency) CompatibleWith(s item.Stack) bool
CompatibleWith ...
type FeatherFalling ¶ added in v0.3.0
type FeatherFalling struct{}
FeatherFalling is an enchantment to boots that reduces fall damage. It does not affect falling speed.
func (FeatherFalling) CompatibleWith ¶ added in v0.3.0
func (e FeatherFalling) CompatibleWith(s item.Stack) bool
CompatibleWith ...
func (FeatherFalling) MaxLevel ¶ added in v0.3.0
func (e FeatherFalling) MaxLevel() int
MaxLevel ...
func (FeatherFalling) Multiplier ¶ added in v0.3.0
func (e FeatherFalling) Multiplier(lvl int) float64
Multiplier returns the damage multiplier of feather falling.
type FireAspect ¶ added in v0.3.0
type FireAspect struct{}
FireAspect is a sword enchantment that sets the target on fire.
func (FireAspect) CompatibleWith ¶ added in v0.3.0
func (e FireAspect) CompatibleWith(s item.Stack) bool
CompatibleWith ...
type FireProtection ¶
type FireProtection struct{}
FireProtection is an armour enchantment that decreases fire damage.
func (FireProtection) CompatibleWith ¶
func (e FireProtection) CompatibleWith(s item.Stack) bool
CompatibleWith ...
type KnockBack ¶ added in v0.6.0
type KnockBack struct{}
KnockBack is an enchantment to a sword that increases the sword's knock-back.
func (KnockBack) CompatibleWith ¶ added in v0.6.0
CompatibleWith ...
type ProjectileProtection ¶
type ProjectileProtection struct{}
ProjectileProtection is an armour enchantment that reduces damage from projectiles.
func (ProjectileProtection) CompatibleWith ¶
func (e ProjectileProtection) CompatibleWith(s item.Stack) bool
CompatibleWith ...
type Protection ¶
type Protection struct{}
Protection is an armour enchantment which increases the damage reduction.
func (Protection) Affects ¶ added in v0.3.0
func (e Protection) Affects(src damage.Source) bool
Affects ...
func (Protection) CompatibleWith ¶
func (e Protection) CompatibleWith(s item.Stack) bool
CompatibleWith ...
func (Protection) Multiplier ¶ added in v0.6.0
func (e Protection) Multiplier(lvl int) float64
Multiplier returns the damage multiplier of protection.
type Sharpness ¶ added in v0.3.0
type Sharpness struct{}
Sharpness is an enchantment applied to a sword or axe that increases melee damage.
func (Sharpness) Addend ¶ added in v0.3.0
Addend returns the additional damage when attacking with sharpness.
func (Sharpness) CompatibleWith ¶ added in v0.3.0
CompatibleWith ...
type SilkTouch ¶ added in v0.1.0
type SilkTouch struct{}
SilkTouch is an enchantment that allows many blocks to drop themselves instead of their usual items when mined.
func (SilkTouch) CompatibleWith ¶ added in v0.1.0
CompatibleWith ...
type Unbreaking ¶ added in v0.3.0
type Unbreaking struct{}
Unbreaking is an enchantment that gives a chance for an item to avoid durability reduction when it is used, effectively increasing the item's durability.
func (Unbreaking) CompatibleWith ¶ added in v0.3.0
func (e Unbreaking) CompatibleWith(s item.Stack) bool
CompatibleWith ...