enchantment

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlastProtection

type BlastProtection struct {
	// contains filtered or unexported fields
}

BlastProtection is an armour enchantment that decreases explosion damage.

func (BlastProtection) CompatibleWith

func (e BlastProtection) CompatibleWith(s item.Stack) bool

CompatibleWith ...

func (BlastProtection) Level

func (e BlastProtection) Level() int

Level ...

func (BlastProtection) MaxLevel

func (e BlastProtection) MaxLevel() int

MaxLevel ...

func (BlastProtection) Name

func (e BlastProtection) Name() string

Name ...

func (BlastProtection) WithLevel

func (e BlastProtection) WithLevel(level int) item.Enchantment

WithLevel ...

type FireProtection

type FireProtection struct {
	// contains filtered or unexported fields
}

FireProtection is an armour enchantment that decreases fire damage.

func (FireProtection) CompatibleWith

func (e FireProtection) CompatibleWith(s item.Stack) bool

CompatibleWith ...

func (FireProtection) Level

func (e FireProtection) Level() int

Level ...

func (FireProtection) MaxLevel

func (e FireProtection) MaxLevel() int

MaxLevel ...

func (FireProtection) Name

func (e FireProtection) Name() string

Name ...

func (FireProtection) WithLevel

func (e FireProtection) WithLevel(level int) item.Enchantment

WithLevel ...

type ProjectileProtection

type ProjectileProtection struct {
	// contains filtered or unexported fields
}

ProjectileProtection is an armour enchantment that reduces damage from projectiles.

func (ProjectileProtection) CompatibleWith

func (e ProjectileProtection) CompatibleWith(s item.Stack) bool

CompatibleWith ...

func (ProjectileProtection) Level

func (e ProjectileProtection) Level() int

Level ...

func (ProjectileProtection) MaxLevel

func (e ProjectileProtection) MaxLevel() int

MaxLevel ...

func (ProjectileProtection) Name

func (e ProjectileProtection) Name() string

Name ...

func (ProjectileProtection) WithLevel

func (e ProjectileProtection) WithLevel(level int) item.Enchantment

WithLevel ...

type Protection

type Protection struct {
	// contains filtered or unexported fields
}

Protection is an armour enchantment which increases the damage reduction.

func (Protection) CompatibleWith

func (e Protection) CompatibleWith(s item.Stack) bool

CompatibleWith ...

func (Protection) Level

func (e Protection) Level() int

Level ...

func (Protection) MaxLevel

func (e Protection) MaxLevel() int

MaxLevel ...

func (Protection) Name

func (e Protection) Name() string

Name ...

func (Protection) WithLevel

func (e Protection) WithLevel(level int) item.Enchantment

WithLevel ...

type SilkTouch added in v0.1.0

type SilkTouch struct {
	// contains filtered or unexported fields
}

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

func (e SilkTouch) CompatibleWith(s item.Stack) bool

CompatibleWith ...

func (SilkTouch) Level added in v0.1.0

func (e SilkTouch) Level() int

Level ...

func (SilkTouch) MaxLevel added in v0.1.0

func (e SilkTouch) MaxLevel() int

MaxLevel ...

func (SilkTouch) Name added in v0.1.0

func (e SilkTouch) Name() string

Name ...

func (SilkTouch) WithLevel added in v0.1.0

func (e SilkTouch) WithLevel(level int) item.Enchantment

WithLevel ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL