Contents
Class ProjectileLaunchContext
java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.component.ProjectileLaunchContext
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
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).
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionProjectileLaunchContext(InteractionType interactionType, boolean launchedByWeapon) -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
ProjectileLaunchContext
-
-
Method Details
-
getComponentType
-
getInteractionType
-
isLaunchedByWeapon
public boolean isLaunchedByWeapon() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-