Class DeployableProjectileComponent

java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableProjectileComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class DeployableProjectileComponent extends Object implements Component<EntityStore>
  • Constructor Details

    • DeployableProjectileComponent

      public DeployableProjectileComponent()
    • DeployableProjectileComponent

      public DeployableProjectileComponent(@Nonnull org.joml.Vector3d previousTickPosition)
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, DeployableProjectileComponent> getComponentType()
    • clone

      public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<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

      public void setHitEntityRef(@Nonnull Ref<EntityStore> ref)
      Called to record the entity that the physics system detected as an impact target.
      Parameters:
      ref - The entity reference of the hit entity.
    • takeHitEntityRef

      @Nullable public Ref<EntityStore> takeHitEntityRef()
      Returns the entity ref that the physics system recorded as an impact target, and clears it.