Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- isHaveAttacked()
- setHaveAttacked(boolean)
- requireBallistic(BallisticData)
- requireCloseCombat()
- getPitch()
- getPitch(boolean)
- getYaw()
- getYaw(boolean)
- getBallisticData()
- setUseFlatTrajectory(boolean)
- setChargeDistance(double)
- getChargeDistance()
- setDesiredHitAngle(double)
- getDesiredHitAngle()
- getType()
- setDepthOffset(double, boolean)
- getTarget()
- setTarget(Ref)
- haveOrientation()
- setOrientation(float, float)
- clearSolution()
- computeSolution(Vector3dc, Vector3dc, Vector3dc)
- computeSolution(double, double, double, double, double, double)
- isOnTarget(float, float, double)
- tryClaim(int)
- isClaimedBy(int)
- release()
- clear()
Class AimingData
java.lang.Object
com.hypixel.hytale.server.npc.util.AimingData
- All Implemented Interfaces:
ExtraInfoProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidbooleancomputeSolution(double x, double y, double z, double vx, double vy, double vz) booleancomputeSolution(org.joml.Vector3dc sourcePos, org.joml.Vector3dc targetPos, org.joml.Vector3dc targetVelocity) doubledoublefloatgetPitch()floatgetPitch(boolean flatTrajectory) getType()floatgetYaw()floatgetYaw(boolean flatTrajectory) booleanbooleanisClaimedBy(int id) booleanbooleanisOnTarget(float yaw, float pitch, double hitAngle) voidrelease()voidrequireBallistic(BallisticData ballisticData) voidvoidsetChargeDistance(double chargeDistance) voidsetDepthOffset(double depthOffset, boolean pitchAdjustOffset) voidsetDesiredHitAngle(double desiredHitAngle) voidsetHaveAttacked(boolean haveAttacked) voidsetOrientation(float yaw, float pitch) voidsetTarget(Ref<EntityStore> ref) voidsetUseFlatTrajectory(boolean useFlatTrajectory) voidtryClaim(int id)
-
Field Details
-
MIN_MOVE_SPEED_STATIC
public static final double MIN_MOVE_SPEED_STATIC- See Also:
-
MIN_MOVE_SPEED_STATIC_2
public static final double MIN_MOVE_SPEED_STATIC_2- See Also:
-
MIN_AIMING_DISTANCE
public static final double MIN_AIMING_DISTANCE- See Also:
-
MIN_AIMING_DISTANCE_2
public static final double MIN_AIMING_DISTANCE_2- See Also:
-
MIN_AIR_TIME
public static final double MIN_AIR_TIME- See Also:
-
ANGLE_EPSILON
public static final double ANGLE_EPSILON- See Also:
-
-
Constructor Details
-
AimingData
public AimingData()
-
-
Method Details
-
isHaveAttacked
public boolean isHaveAttacked() -
setHaveAttacked
public void setHaveAttacked(boolean haveAttacked) -
requireBallistic
-
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
-
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
- Specified by:
getTypein interfaceExtraInfoProvider
-
setDepthOffset
public void setDepthOffset(double depthOffset, boolean pitchAdjustOffset) -
getTarget
-
setTarget
-
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()
-