Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AquaAffinity aquaAffinity
View Source
var BlastProtection blastProtection
View Source
var CurseOfVanishing curseOfVanishing
View Source
var DepthStrider depthStrider
View Source
var Efficiency efficiency
View Source
var FeatherFalling featherFalling
View Source
var FireAspect fireAspect
View Source
var FireProtection fireProtection
View Source
var Flame flame
View Source
var Fortune fortune
View Source
var Infinity infinity
View Source
var Knockback knockback
View Source
var Mending mending
View Source
var Multishot multishot
View Source
var Piercing piercing
View Source
var Power power
View Source
var ProjectileProtection projectileProtection
View Source
var Protection protection
View Source
var Punch punch
View Source
var QuickCharge quickCharge
View Source
var Respiration respiration
View Source
var Sharpness sharpness
View Source
var SilkTouch silkTouch
View Source
var SoulSpeed soulSpeed
View Source
var SwiftSneak swiftSneak
View Source
var Thorns thorns
View Source
var Unbreaking unbreaking
Functions ¶
func ProtectionFactor ¶
func ProtectionFactor(src world.DamageSource, enchantments []item.Enchantment) float64
Types ¶
type AffectedDamageSource ¶
type AffectedDamageSource interface {
world.DamageSource
AffectedByEnchantment(e item.EnchantmentType) bool
}
type DamageModifier ¶
type DamageModifier interface {
Modifier() float64
}
type ThornsDamageSource ¶
func (ThornsDamageSource) Fire ¶
func (ThornsDamageSource) Fire() bool
func (ThornsDamageSource) IgnoreTotem ¶
func (ThornsDamageSource) IgnoreTotem() bool
func (ThornsDamageSource) ReducedByArmour ¶
func (ThornsDamageSource) ReducedByArmour() bool
func (ThornsDamageSource) ReducedByResistance ¶
func (ThornsDamageSource) ReducedByResistance() bool
Source Files
¶
- aqua_affinity.go
- blast_protection.go
- damage.go
- depth_strider.go
- efficiency.go
- feather_falling.go
- fire_aspect.go
- fire_protection.go
- flame.go
- fortune.go
- infinity.go
- knockback.go
- mending.go
- multishot.go
- piercing.go
- power.go
- projectile_protection.go
- protection.go
- punch.go
- quick_charge.go
- register.go
- respiration.go
- sharpness.go
- silk_touch.go
- soul_speed.go
- swift_sneak.go
- thorns.go
- unbreaking.go
- vanishing.go
Click to show internal directories.
Click to hide internal directories.