Skip to content

Damage.ProjectileSource

Package: com.hypixel.hytale.server.core.modules.entity.damage

public static class Damage.ProjectileSource extends Damage.EntitySource

A 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.

public ProjectileSource(@Nonnull Ref<EntityStore> shooter, @Nonnull Ref<EntityStore> projectile)

Creates a projectile source linking the shooter and the projectile entity.

@Nonnull
public Ref<EntityStore> getProjectile()

Returns the Ref<EntityStore> pointing to the projectile entity.

FieldTypeModifiersDescription
projectileRef<EntityStore>protected finalReference to the projectile entity.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.