package
0.10.3
Repository: https://github.com/df-mc/dragonfly.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

EyePosition returns the position of the eyes of the entity if the entity implements entity.Eyed, or the actual position if it doesn't.
NewAreaEffectCloud creates a new area effect cloud entity and returns it.
NewAreaEffectCloudWith ...
NewArrow creates a new Arrow and returns it.
NewArrowWithDamage creates a new Arrow with the given base damage, and returns it.
NewBottleOfEnchanting ...
NewEffectManager creates and returns a new initialised EffectManager.
NewEgg creates an Egg entity.
NewEnderPearl creates an EnderPearl entity.
NewExperienceManager returns a new ExperienceManager with no experience.
NewExperienceOrb creates a new experience orb and returns it.
NewExperienceOrbs takes in a position and an amount and automatically splits the amount into multiple orbs, returning a slice of the created orbs.
NewFallingBlock creates a new FallingBlock entity.
NewFirework creates a firework entity.
NewFireworkAttached creates a firework entity with an owner that the firework may be attached to.
NewHealthManager returns a new health manager with the health and max health provided.
NewItem creates a new item entity using the item stack passed.
NewItemPickupDelay creates a new item entity containing item stack i.
NewLightning creates a lightning entity.
NewLightningWithDamage creates a new lightning entities using the damage and fire properties passed.
NewLingeringPotion creates a new lingering potion.
NewSnowball creates a snowball entity at a position with an owner entity.
NewSplashPotion creates a splash potion.
NewText creates and returns a new Text entity with the text and position provided.
NewTippedArrow creates a new Arrow with a potion effect added to an entity when hit.
NewTippedArrowWithDamage creates a new Arrow with a potion effect added to an entity when hit and, and returns it.
NewTNT creates a new primed TNT entity.
Open converts a world.EntityHandle to an Ent in a world.Tx.

# Variables

AreaEffectCloudType is a world.EntityType implementation for AreaEffectCloud.
ArrowType is a world.EntityType implementation for Arrow.
BottleOfEnchantingType is a world.EntityType for BottleOfEnchanting.
DefaultRegistry is a world.EntityRegistry that registers all default entities implemented by Dragonfly.
EggType is a world.EntityType implementation for Egg.
EnderPearlType is a world.EntityType implementation for EnderPearl.
ExperienceOrbType is a world.EntityType implementation for ExperienceOrb.
FallingBlockType is a world.EntityType implementation for FallingBlock.
FireworkType is a world.EntityType implementation for Firework.
ItemType is a world.EntityType implementation for Item.
LightningType is a world.EntityType implementation for Lightning.
LingeringPotionType is a world.EntityType implementation for LingeringPotion.
SnowballType is a world.EntityType implementation for snowballs.
SplashPotionType is a world.EntityType implementation for SplashPotion.
TextType is a world.EntityType implementation for Text.
TNTType is a world.EntityType implementation for TNT.

# Structs

AreaEffectCloudBehaviour is the cloud that is created when: lingering potions are thrown; creepers with potion effects explode; dragon fireballs hit the ground.
AreaEffectCloudBehaviourConfig contains optional parameters for an area effect cloud entity.
ArrowShakeAction makes an arrow entity display a shaking animation for the given duration.
No description provided by the author
CriticalHitAction is a world.EntityAction that makes an entity display critical hit particles.
DeathAction is a world.EntityAction that makes an entity display the death animation.
No description provided by the author
EatAction is a world.EntityAction that makes an entity display the eating particles at its mouth to viewers with the item in its hand being eaten.
EffectManager manages the effects of an entity.
Ent is a world.Entity implementation that allows entity implementations to share a lot of code.
ExperienceManager manages experience and levels for entities, and provides functions to add, remove, and calculate experience needed for upcoming levels.
ExperienceOrbBehaviour implements Behaviour for an experience orb entity.
ExperienceOrbBehaviourConfig holds optional parameters for the creation of an ExperienceOrbBehaviour.
No description provided by the author
No description provided by the author
FallingBlockBehaviour implements the behaviour for falling block entities.
FallingBlockBehaviourConfig holds optional parameters for FallingBlockBehaviour.
FireworkBehaviour implements Behaviour for a firework entity.
FireworkBehaviourConfig holds optional parameters for a FireworkBehaviour.
FireworkExplosionAction is a world.EntityAction that makes a Firework rocket display an explosion particle.
No description provided by the author
No description provided by the author
HealthManager handles the health of an entity.
HurtAction is a world.EntityAction that makes an entity display the animation for being hurt.
ItemBehaviour implements the behaviour of item entities.
ItemBehaviourConfig holds optional parameters for an ItemBehaviour.
No description provided by the author
Movement represents the movement of a world.Entity as a result of a call to MovementComputer.TickMovement.
MovementComputer is used to compute movement of an entity.
PassiveBehaviour implements Behaviour for entities that act passively.
PassiveBehaviourConfig holds optional parameters for a PassiveBehaviour.
PickedUpAction is a world.EntityAction that makes an item get picked up by a collector.
ProjectileBehaviour implements the behaviour of projectiles.
ProjectileBehaviourConfig allows the configuration of projectiles.
No description provided by the author
StationaryBehaviour implements the behaviour of an entity that is unable to move, such as a text entity or an area effect cloud.
StationaryBehaviourConfig holds settings that influence the way StationaryBehaviour operates.
No description provided by the author
SwingArmAction is a world.EntityAction that makes an entity or player swing its arm.
TotemUseAction is a world.EntityAction that displays the totem use particles and animation.
No description provided by the author

# Interfaces

Behaviour implements the behaviour of an Ent.
Collector represents an entity in the world that is able to collect an item, typically an entity such as a player or a zombie.
Eyed represents an entity that has eyes.
Flammable is an interface for entities that can be set on fire.
Living represents an entity that is alive and that has health.
Solidifiable represents a block that can solidify by specific adjacent blocks.
SplashableBlock is a block that can be splashed with a splash bottle.
SplashableEntity is an entity that can be splashed with a splash bottle.