Class Damage.ProjectileSource

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.Damage.EntitySource
com.hypixel.hytale.server.core.modules.entity.damage.Damage.ProjectileSource
All Implemented Interfaces:
Damage.Source
Enclosing class:
Damage

public static class Damage.ProjectileSource extends Damage.EntitySource
An entity damage source that also includes the affiliated projectile entity.
  • Constructor Details

    • ProjectileSource

      public ProjectileSource(@Nonnull Ref<EntityStore> shooter, @Nonnull Ref<EntityStore> projectile)
      Default Constructor of a Damage.ProjectileSource instance
      Parameters:
      shooter - The entity reference of the shooting entity
      projectile - The entity reference of the affiliated projectile
  • Method Details

    • getProjectile

      @Nonnull public Ref<EntityStore> getProjectile()
      Returns:
      the entity reference of the affiliated projectile