Class ProjectileLaunchContext

java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.component.ProjectileLaunchContext
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class ProjectileLaunchContext extends Object implements Component<EntityStore>
How a projectile was launched: the interaction type of the launching chain and whether the launching item is a weapon. The impact chain runs with a fresh context, so this component is the only carrier of that fact from launch to impact. On-hit systems read it to tell a weapon attack (a bow or crossbow Primary shot) from other projectiles (ability casts, NPC throws).