Contents
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
-
Constructor Summary
ConstructorsConstructorDescriptionSetMovementStates(MovementStates movementStates) Creates an instance of aSetMovementStatesrecord 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
-
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
-
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
-