Package ac.boar.anticheat.ack.types
Record Class PlayerMetadataAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.PlayerMetadataAck
- All Implemented Interfaces:
Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerMetadataAck(Float width, Float height, Float scale, Set<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags, org.cloudburstmc.math.vector.Vector3i bedPosition, long sentTick) Creates an instance of aPlayerMetadataAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.math.vector.Vector3iReturns the value of thebedPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.Set<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.scale()Returns the value of thescalerecord component.longsentTick()Returns the value of thesentTickrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
PlayerMetadataAck
public PlayerMetadataAck(Float width, Float height, Float scale, Set<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags, org.cloudburstmc.math.vector.Vector3i bedPosition, long sentTick) Creates an instance of aPlayerMetadataAckrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentscale- the value for thescalerecord componentflags- the value for theflagsrecord componentbedPosition- the value for thebedPositionrecord componentsentTick- the value for thesentTickrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
bedPosition
public org.cloudburstmc.math.vector.Vector3i bedPosition()Returns the value of thebedPositionrecord component.- Returns:
- the value of the
bedPositionrecord component
-
sentTick
public long sentTick()Returns the value of thesentTickrecord component.- Returns:
- the value of the
sentTickrecord component
-