Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Explosion ¶
type Explosion struct { // The position of the explosion Position maths.Vec3d // Strength of the explosion Strength ExplosionStrength }
func (Explosion) CalculateDamage ¶
func (e Explosion) CalculateDamage(pos maths.Vec3d, entity core.EntityLiving, world *world.World, explosionType ExplosionStrength) float64
func (Explosion) GetAffectedEntities ¶
type ExplosionStrength ¶
type ExplosionStrength float64
const ( EndCrystal ExplosionStrength = 6.0 ChargedCreeper ExplosionStrength = 6.0 Bed ExplosionStrength = 5.0 TNT ExplosionStrength = 4.0 Creeper ExplosionStrength = 3.0 WitherSkull ExplosionStrength = 1.0 Fireball ExplosionStrength = 1.0 )
func (ExplosionStrength) GetExplosionRadius ¶
func (e ExplosionStrength) GetExplosionRadius() float64
Click to show internal directories.
Click to hide internal directories.