HyCodeYourTale
classpublicPriority 3

AimingData

com.hypixel.hytale.server.npc.util.AimingData

implements ExtraInfoProvider

28

Methods

28

Public Methods

13

Fields

1

Constructors

Constants

doubleANGLE_EPSILON= 0.1
doubleMIN_AIMING_DISTANCE= 0.01
doubleMIN_AIMING_DISTANCE_2= 1.0E-4
doubleMIN_AIR_TIME= 0.01
doubleMIN_MOVE_SPEED_STATIC= 0.01
doubleMIN_MOVE_SPEED_STATIC_2= 1.0E-4

Constructors

public
AimingData()

Methods

Public Methods (28)

public
void clear()
public
void clearSolution()
public
boolean computeSolution(double x, double y, double z, double vx, double vy, double vz)
public
BallisticData getBallisticData()
@Nullable
public
double getChargeDistance()
public
double getDesiredHitAngle()
public
float getPitch(boolean flatTrajectory)
public
float getPitch()
public
Ref<EntityStore> getTarget()
@Nullable
public
Class<AimingData> getType()
@Nonnull@Override
public
float getYaw()
public
float getYaw(boolean flatTrajectory)
public
boolean haveOrientation()
public
boolean isBallistic()
public
boolean isClaimedBy(int id)
public
boolean isHaveAttacked()
public
boolean isOnTarget(float yaw, float pitch, double hitAngle)
public
void release()
public
void requireBallistic(BallisticData ballisticData)
public
void requireCloseCombat()
public
void setChargeDistance(double chargeDistance)
public
void setDepthOffset(double depthOffset, boolean pitchAdjustOffset)
public
void setDesiredHitAngle(double desiredHitAngle)
public
void setHaveAttacked(boolean haveAttacked)
public
void setOrientation(float yaw, float pitch)
public
void setTarget(Ref<EntityStore> ref)
public
void setUseFlatTrajectory(boolean useFlatTrajectory)
public
void tryClaim(int id)

Fields

Private/Package Fields (13)

privateBallisticData ballisticData
privatedouble chargeDistance
privatedouble depthOffset
privatedouble desiredHitAngle
privateboolean haveAttacked
privateboolean haveOrientation
privateboolean haveSolution
privateint owner
privatefloat[] pitch
privateboolean pitchAdjustOffset
privateRef<EntityStore> target
privateboolean useFlatTrajectory
privatefloat[] yaw

Related Classes