Class AimingData

java.lang.Object
com.hypixel.hytale.server.npc.util.AimingData
All Implemented Interfaces:
ExtraInfoProvider

public class AimingData extends Object implements ExtraInfoProvider
  • Field Details

  • Constructor Details

    • AimingData

      public AimingData()
  • Method Details

    • isHaveAttacked

      public boolean isHaveAttacked()
    • setHaveAttacked

      public void setHaveAttacked(boolean haveAttacked)
    • requireBallistic

      public void requireBallistic(@Nonnull BallisticData ballisticData)
    • requireCloseCombat

      public void requireCloseCombat()
    • getPitch

      public float getPitch()
    • getPitch

      public float getPitch(boolean flatTrajectory)
    • getYaw

      public float getYaw()
    • getYaw

      public float getYaw(boolean flatTrajectory)
    • getBallisticData

      @Nullable public BallisticData getBallisticData()
    • setUseFlatTrajectory

      public void setUseFlatTrajectory(boolean useFlatTrajectory)
    • setChargeDistance

      public void setChargeDistance(double chargeDistance)
    • getChargeDistance

      public double getChargeDistance()
    • setDesiredHitAngle

      public void setDesiredHitAngle(double desiredHitAngle)
    • getDesiredHitAngle

      public double getDesiredHitAngle()
    • getType

      @Nonnull public Class<AimingData> getType()
      Specified by:
      getType in interface ExtraInfoProvider
    • setDepthOffset

      public void setDepthOffset(double depthOffset, boolean pitchAdjustOffset)
    • getTarget

      @Nullable public Ref<EntityStore> getTarget()
    • setTarget

      public void setTarget(@Nullable Ref<EntityStore> ref)
    • haveOrientation

      public boolean haveOrientation()
    • setOrientation

      public void setOrientation(float yaw, float pitch)
    • clearSolution

      public void clearSolution()
    • computeSolution

      public boolean computeSolution(@Nonnull org.joml.Vector3dc sourcePos, @Nonnull org.joml.Vector3dc targetPos, @Nullable org.joml.Vector3dc targetVelocity)
    • computeSolution

      public boolean computeSolution(double x, double y, double z, double vx, double vy, double vz)
    • isOnTarget

      public boolean isOnTarget(float yaw, float pitch, double hitAngle)
    • tryClaim

      public void tryClaim(int id)
    • isClaimedBy

      public boolean isClaimedBy(int id)
    • release

      public void release()
    • clear

      public void clear()