Class KnockbackSimulation
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.KnockbackSimulation
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatprivate final Vector3dprivate booleanprivate final Vector3dprivate MovementStatesprivate final Vector3dprivate final CollisionResultprivate booleanprivate intstatic final floatprivate final Vector3dprivate final Vector3dprivate floatprivate final Vector3dprivate ChangeVelocityTypeprivate final Vector3dprivate final Vector3dprivate final Vector3dprivate floatprivate booleanprivate booleanFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestedVelocity(Vector3d velocity) clone()booleanintfloatfloatbooleanbooleanvoidreset()voidsetClientFinished(boolean clientFinished) voidsetClientMovementStates(MovementStates clientMovementStates) voidsetHadWishMovement(boolean hadWishMovement) voidsetJumpCombo(int jumpCombo) voidsetRemainingTime(float remainingTime) voidsetRequestedVelocity(Vector3d velocity) voidsetRequestedVelocityChangeType(ChangeVelocityType requestedVelocityChangeType) voidsetTickBuffer(float tickBuffer) voidsetWasJumping(boolean wasJumping) voidsetWasOnGround(boolean wasOnGround) booleanMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
KNOCKBACK_SIMULATION_TIME
public static final float KNOCKBACK_SIMULATION_TIME- See Also:
-
BLEND_DELAY
public static final float BLEND_DELAY- See Also:
-
requestedVelocity
-
clientLastPosition
-
clientPosition
-
relativeMovement
-
simPosition
-
simVelocity
-
requestedVelocityChangeType
-
clientMovementStates
-
remainingTime
private float remainingTime -
hadWishMovement
private boolean hadWishMovement -
clientFinished
private boolean clientFinished -
wasJumping
private boolean wasJumping -
jumpCombo
private int jumpCombo -
wasOnGround
private boolean wasOnGround -
tickBuffer
private float tickBuffer -
movementOffset
-
collisionResult
-
checkPosition
-
tempPosition
-
-
Constructor Details
-
KnockbackSimulation
public KnockbackSimulation()
-
-
Method Details
-
getComponentType
-
getTickBuffer
public float getTickBuffer() -
setTickBuffer
public void setTickBuffer(float tickBuffer) -
getRequestedVelocity
-
addRequestedVelocity
-
setRequestedVelocity
-
getRequestedVelocityChangeType
-
setRequestedVelocityChangeType
-
getClientLastPosition
-
getClientPosition
-
getRelativeMovement
-
getSimPosition
-
getSimVelocity
-
getRemainingTime
public float getRemainingTime() -
setRemainingTime
public void setRemainingTime(float remainingTime) -
reset
public void reset() -
consumeWasJumping
public boolean consumeWasJumping() -
setWasJumping
public void setWasJumping(boolean wasJumping) -
hadWishMovement
public boolean hadWishMovement() -
setHadWishMovement
public void setHadWishMovement(boolean hadWishMovement) -
isClientFinished
public boolean isClientFinished() -
setClientFinished
public void setClientFinished(boolean clientFinished) -
getJumpCombo
public int getJumpCombo() -
setJumpCombo
public void setJumpCombo(int jumpCombo) -
wasOnGround
public boolean wasOnGround() -
setWasOnGround
public void setWasOnGround(boolean wasOnGround) -
getClientMovementStates
-
setClientMovementStates
-
getMovementOffset
-
getCollisionResult
-
getCheckPosition
-
getTempPosition
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-