Contents
Record Class PlayerInput.SetHead
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerInput.SetHead
- All Implemented Interfaces:
PlayerInput.InputUpdate
- Enclosing class:
PlayerInput
public static record PlayerInput.SetHead(Direction direction)
extends Record
implements PlayerInput.InputUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CommandBuffer<EntityStore> commandBuffer, ArchetypeChunk<EntityStore> archetypeChunk, int index) clone()Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SetHead
Creates an instance of aSetHeadrecord class.- Parameters:
direction- the value for thedirectionrecord 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). -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-