Contents
Record Class PlayerInput.SetRiderMovementStates
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerInput.SetRiderMovementStates
- All Implemented Interfaces:
PlayerInput.InputUpdate
- Enclosing class:
PlayerInput
public static record PlayerInput.SetRiderMovementStates(MovementStates movementStates)
extends Record
implements PlayerInput.InputUpdate
-
Constructor Summary
ConstructorsConstructorDescriptionSetRiderMovementStates(MovementStates movementStates) Creates an instance of aSetRiderMovementStatesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CommandBuffer<EntityStore> commandBuffer, ArchetypeChunk<EntityStore> archetypeChunk, int index) clone()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themovementStatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SetRiderMovementStates
Creates an instance of aSetRiderMovementStatesrecord class.- Parameters:
movementStates- the value for themovementStatesrecord component
-
-
Method Details
-
apply
public void apply(CommandBuffer<EntityStore> commandBuffer, ArchetypeChunk<EntityStore> archetypeChunk, int index) - Specified by:
applyin interfacePlayerInput.InputUpdate
-
clone
- Specified by:
clonein interfacePlayerInput.InputUpdate
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
movementStates
Returns the value of themovementStatesrecord component.- Returns:
- the value of the
movementStatesrecord component
-