Damage.ProjectileSource
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class Damage.ProjectileSource extends Damage.EntitySourceA Damage.EntitySource that additionally tracks the projectile entity responsible for the damage. The inherited sourceRef references the shooter, while projectile references the projectile entity itself.
Constructor
Section titled “Constructor”public ProjectileSource(@Nonnull Ref<EntityStore> shooter, @Nonnull Ref<EntityStore> projectile)Creates a projectile source linking the shooter and the projectile entity.
Methods
Section titled “Methods”@Nonnullpublic Ref<EntityStore> getProjectile()Returns the Ref<EntityStore> pointing to the projectile entity.
Fields
Section titled “Fields”| Field | Type | Modifiers | Description |
|---|---|---|---|
projectile | Ref<EntityStore> | protected final | Reference to the projectile entity. |
Related Types
Section titled “Related Types”- Damage — the damage event
- Damage.EntitySource — parent class for entity-originated damage
- Damage.Source — root interface
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.