Record Class PlayerInput.SetMovementStates
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerInput.SetMovementStates
- All Implemented Interfaces:
PlayerInput.InputUpdate
- Enclosing class:
PlayerInput
public static record PlayerInput.SetMovementStates(MovementStates movementStates)
extends Record
implements PlayerInput.InputUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MovementStatesThe field for themovementStatesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSetMovementStates(MovementStates movementStates) Creates an instance of aSetMovementStatesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CommandBuffer<EntityStore> commandBuffer, ArchetypeChunk<EntityStore> archetypeChunk, int index) 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.
-
Field Details
-
movementStates
The field for themovementStatesrecord component.
-
-
Constructor Details
-
SetMovementStates
Creates an instance of aSetMovementStatesrecord class.- Parameters:
movementStates- the value for themovementStatesrecord component
-
-
Method Details
-
apply
public void apply(CommandBuffer<EntityStore> commandBuffer, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, int index) - Specified by:
applyin interfacePlayerInput.InputUpdate
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-