Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getComponentType()
- getDirection()
- getY()
- getForce()
- getPreset()
- getVelocityType()
- getCommandVelocity()
- getVelocityConfig()
- getStartPosition()
- getPreviousPosition()
- getSamples()
- getTickCount()
- getTotalDistance()
- getMaxY()
- hasMoved()
- addSample(KnockbackTraceComponent.TickSample, Vector3dc, float, double)
- hasTimedOut()
- clone()
Class KnockbackTraceComponent
java.lang.Object
com.hypixel.hytale.builtin.npcknockbackdebug.KnockbackTraceComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionKnockbackTraceComponent(String direction, float y, float force, String preset, ChangeVelocityType velocityType, org.joml.Vector3dc commandVelocity, String velocityConfig, org.joml.Vector3dc startPosition) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSample(KnockbackTraceComponent.TickSample sample, org.joml.Vector3dc positionDelta, float dt, double movementThresholdSquared) clone()org.joml.Vector3dfloatgetForce()doublegetMaxY()org.joml.Vector3dorg.joml.Vector3dintdoublefloatgetY()booleanhasMoved()booleanMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
KnockbackTraceComponent
public KnockbackTraceComponent() -
KnockbackTraceComponent
public KnockbackTraceComponent(@Nonnull String direction, float y, float force, @Nonnull String preset, @Nonnull ChangeVelocityType velocityType, @Nonnull org.joml.Vector3dc commandVelocity, @Nonnull String velocityConfig, @Nonnull org.joml.Vector3dc startPosition)
-
-
Method Details
-
getComponentType
-
getDirection
-
getY
public float getY() -
getForce
public float getForce() -
getPreset
-
getVelocityType
-
getCommandVelocity
@Nonnull public org.joml.Vector3d getCommandVelocity() -
getVelocityConfig
-
getStartPosition
@Nonnull public org.joml.Vector3d getStartPosition() -
getPreviousPosition
@Nonnull public org.joml.Vector3d getPreviousPosition() -
getSamples
-
getTickCount
public int getTickCount() -
getTotalDistance
public double getTotalDistance() -
getMaxY
public double getMaxY() -
hasMoved
public boolean hasMoved() -
addSample
public void addSample(@Nonnull KnockbackTraceComponent.TickSample sample, @Nonnull org.joml.Vector3dc positionDelta, float dt, double movementThresholdSquared) -
hasTimedOut
public boolean hasTimedOut() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-