Contents
Class DeployableProjectileComponent
java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableProjectileComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()org.joml.Vector3dvoidsetHitEntityRef(Ref<EntityStore> ref) Called to record the entity that the physics system detected as an impact target.voidsetPreviousTickPosition(org.joml.Vector3d pos) Returns the entity ref that the physics system recorded as an impact target, and clears it.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
DeployableProjectileComponent
public DeployableProjectileComponent() -
DeployableProjectileComponent
public DeployableProjectileComponent(@Nonnull org.joml.Vector3d previousTickPosition)
-
-
Method Details
-
getComponentType
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-
getPreviousTickPosition
@Nonnull public org.joml.Vector3d getPreviousTickPosition() -
setPreviousTickPosition
public void setPreviousTickPosition(@Nonnull org.joml.Vector3d pos) -
setHitEntityRef
Called to record the entity that the physics system detected as an impact target.- Parameters:
ref- The entity reference of the hit entity.
-
takeHitEntityRef
Returns the entity ref that the physics system recorded as an impact target, and clears it.
-