KnockbackSimulation

public class KnockbackSimulation implements Component

Class KnockbackSimulation. Provides knockbacksimulation functionality for the Hytale server.

java.lang.Object > KnockbackSimulation

Field Summary

requestedVelocityChangeType

private ChangeVelocityType requestedVelocityChangeType

Field requestedVelocityChangeType.

clientMovementStates

private MovementStates clientMovementStates

Field clientMovementStates.

remainingTime

private float remainingTime

Field remainingTime.

hadWishMovement

private boolean hadWishMovement

Field hadWishMovement.

clientFinished

private boolean clientFinished

Field clientFinished.

wasJumping

private boolean wasJumping

Field wasJumping.

jumpCombo

private int jumpCombo

Field jumpCombo.

wasOnGround

private boolean wasOnGround

Field wasOnGround.

tickBuffer

private float tickBuffer

Field tickBuffer.

tmp

final boolean tmp

Field tmp.

simulation

final KnockbackSimulation simulation

Field simulation.

Method Detail

KnockbackSimulation

public public KnockbackSimulation ()

Method KnockbackSimulation.

getComponentType

public KnockbackSimulation> getComponentType ()

Method getComponentType.

getTickBuffer

public float getTickBuffer ()

Method getTickBuffer.

setTickBuffer

public void setTickBuffer (final float tickBuffer)

Method setTickBuffer.

Parameters:
final float tickBuffer

getRequestedVelocity

public Vector3d getRequestedVelocity ()

Method getRequestedVelocity.

addRequestedVelocity

public void addRequestedVelocity (@Nonnull final Vector3d velocity)

Method addRequestedVelocity.

Parameters:
@Nonnull final Vector3d velocity

setRequestedVelocity

public void setRequestedVelocity (@Nonnull final Vector3d velocity)

Method setRequestedVelocity.

Parameters:
@Nonnull final Vector3d velocity

getRequestedVelocityChangeType

public ChangeVelocityType getRequestedVelocityChangeType ()

Method getRequestedVelocityChangeType.

setRequestedVelocityChangeType

public void setRequestedVelocityChangeType (final ChangeVelocityType requestedVelocityChangeType)

Method setRequestedVelocityChangeType.

Parameters:
final ChangeVelocityType requestedVelocityChangeType

getClientLastPosition

public Vector3d getClientLastPosition ()

Method getClientLastPosition.

getClientPosition

public Vector3d getClientPosition ()

Method getClientPosition.

getRelativeMovement

public Vector3d getRelativeMovement ()

Method getRelativeMovement.

getSimPosition

public Vector3d getSimPosition ()

Method getSimPosition.

getSimVelocity

public Vector3d getSimVelocity ()

Method getSimVelocity.

getRemainingTime

public float getRemainingTime ()

Method getRemainingTime.

setRemainingTime

public void setRemainingTime (final float remainingTime)

Method setRemainingTime.

Parameters:
final float remainingTime

reset

public void reset ()

Method reset.

consumeWasJumping

public boolean consumeWasJumping ()

Method consumeWasJumping.

setWasJumping

public void setWasJumping (final boolean wasJumping)

Method setWasJumping.

Parameters:
final boolean wasJumping

hadWishMovement

public boolean hadWishMovement ()

Method hadWishMovement.

setHadWishMovement

public void setHadWishMovement (final boolean hadWishMovement)

Method setHadWishMovement.

Parameters:
final boolean hadWishMovement

isClientFinished

public boolean isClientFinished ()

Method isClientFinished.

setClientFinished

public void setClientFinished (final boolean clientFinished)

Method setClientFinished.

Parameters:
final boolean clientFinished

getJumpCombo

public int getJumpCombo ()

Method getJumpCombo.

setJumpCombo

public void setJumpCombo (final int jumpCombo)

Method setJumpCombo.

Parameters:
final int jumpCombo

wasOnGround

public boolean wasOnGround ()

Method wasOnGround.

setWasOnGround

public void setWasOnGround (final boolean wasOnGround)

Method setWasOnGround.

Parameters:
final boolean wasOnGround

getClientMovementStates

public MovementStates getClientMovementStates ()

Method getClientMovementStates.

setClientMovementStates

public void setClientMovementStates (final MovementStates clientMovementStates)

Method setClientMovementStates.

Parameters:
final MovementStates clientMovementStates

getMovementOffset

public Vector3d getMovementOffset ()

Method getMovementOffset.

getCollisionResult

public CollisionResult getCollisionResult ()

Method getCollisionResult.

getCheckPosition

public Vector3d getCheckPosition ()

Method getCheckPosition.

getTempPosition

public Vector3d getTempPosition ()

Method getTempPosition.

clone

public Component clone ()

Method clone.