PlayerInput

public class PlayerInput implements Component

Class PlayerInput. Provides playerinput functionality for the Hytale server.

java.lang.Object > PlayerInput

Field Summary

mountId

private int mountId

Field mountId.

playerInput

final PlayerInput playerInput

Field playerInput.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

x

private double x

Field x.

y

private double y

Field y.

z

private double z

Field z.

playerRef

final Ref playerRef

Field playerRef.

playerComponent

final Player playerComponent

Field playerComponent.

ref

final Ref ref

Field ref.

position

final Vector3d position

Field position.

Method Detail

PlayerInput

public public PlayerInput ()

Method PlayerInput.

getComponentType

public PlayerInput> getComponentType ()

Method getComponentType.

queue

public void queue (final InputUpdate inputUpdate)

Method queue.

Parameters:
final InputUpdate inputUpdate

getMovementUpdateQueue

public List getMovementUpdateQueue ()

Method getMovementUpdateQueue.

getMountId

public int getMountId ()

Method getMountId.

setMountId

public void setMountId (final int mountId)

Method setMountId.

Parameters:
final int mountId

clone

public Component clone ()

Method clone.

SetMovementStates

public record SetMovementStates (MovementStates movementStates)

Method SetMovementStates.

Parameters:
MovementStates movementStates

apply

public void apply (final CommandBuffer commandBuffer, @Nonnull final ArchetypeChunk archetypeChunk, final int index)

Method apply.

Parameters:
final CommandBuffer commandBuffer
@Nonnull final ArchetypeChunk archetypeChunk
final int index

SetClientVelocity

public public SetClientVelocity (final com.hypixel.hytale.protocol.Vector3d velocity)

Method SetClientVelocity.

Parameters:
final com.hypixel.hytale.protocol.Vector3d velocity

getVelocity

public Vector3d getVelocity ()

Method getVelocity.

SetRiderMovementStates

public record SetRiderMovementStates (MovementStates movementStates)

Method SetRiderMovementStates.

Parameters:
MovementStates movementStates

SetHead

public record SetHead (Direction direction)

Method SetHead.

Parameters:
Direction direction

SetBody

public record SetBody (Direction direction)

Method SetBody.

Parameters:
Direction direction

AbsoluteMovement

public public AbsoluteMovement (final double x, final double y, final double z)

Method AbsoluteMovement.

Parameters:
final double x
final double y
final double z

getX

public double getX ()

Method getX.

setX

public void setX (final double x)

Method setX.

Parameters:
final double x

getY

public double getY ()

Method getY.

setY

public void setY (final double y)

Method setY.

Parameters:
final double y

getZ

public double getZ ()

Method getZ.

setZ

public void setZ (final double z)

Method setZ.

Parameters:
final double z

RelativeMovement

public public RelativeMovement (final double x, final double y, final double z)

Method RelativeMovement.

Parameters:
final double x
final double y
final double z

WishMovement

public public WishMovement (final double x, final double y, final double z)

Method WishMovement.

Parameters:
final double x
final double y
final double z