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 InputUpdateinputUpdate
getMovementUpdateQueue
public
List
getMovementUpdateQueue
()
Method getMovementUpdateQueue.
getMountId
public
int
getMountId
()
Method getMountId.
setMountId
public
void
setMountId
(final int mountId)
Method setMountId.
- Parameters:
final intmountId
apply
public
void
apply
(final CommandBuffer commandBuffer, @Nonnull final ArchetypeChunk archetypeChunk, final int index)
Method apply.
- Parameters:
final CommandBuffercommandBuffer@Nonnull final ArchetypeChunkarchetypeChunkfinal intindex
SetClientVelocity
public
public
SetClientVelocity
(final com.hypixel.hytale.protocol.Vector3d velocity)
Method SetClientVelocity.
- Parameters:
final com.hypixel.hytale.protocol.Vector3dvelocity
AbsoluteMovement
public
public
AbsoluteMovement
(final double x, final double y, final double z)
Method AbsoluteMovement.
- Parameters:
final doublexfinal doubleyfinal doublez
getX
public
double
getX
()
Method getX.
setX
public
void
setX
(final double x)
Method setX.
- Parameters:
final doublex
getY
public
double
getY
()
Method getY.
setY
public
void
setY
(final double y)
Method setY.
- Parameters:
final doubley
getZ
public
double
getZ
()
Method getZ.
setZ
public
void
setZ
(final double z)
Method setZ.
- Parameters:
final doublez
RelativeMovement
public
public
RelativeMovement
(final double x, final double y, final double z)
Method RelativeMovement.
- Parameters:
final doublexfinal doubleyfinal doublez
WishMovement
public
public
WishMovement
(final double x, final double y, final double z)
Method WishMovement.
- Parameters:
final doublexfinal doubleyfinal doublez