Package ac.boar.anticheat.ack.types
Record Class BlockUpdateAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.BlockUpdateAck
- All Implemented Interfaces:
Acknowledgment
public record BlockUpdateAck(org.cloudburstmc.math.vector.Vector3i position, int layer, int runtimeId)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionBlockUpdateAck(org.cloudburstmc.math.vector.Vector3i position, int layer, int runtimeId) Creates an instance of aBlockUpdateAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlayer()Returns the value of thelayerrecord component.org.cloudburstmc.math.vector.Vector3iposition()Returns the value of thepositionrecord component.intReturns the value of theruntimeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockUpdateAck
public BlockUpdateAck(org.cloudburstmc.math.vector.Vector3i position, int layer, int runtimeId) Creates an instance of aBlockUpdateAckrecord class.- Parameters:
position- the value for thepositionrecord componentlayer- the value for thelayerrecord componentruntimeId- the value for theruntimeIdrecord 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 '=='. -
position
public org.cloudburstmc.math.vector.Vector3i position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
layer
public int layer()Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
runtimeId
public int runtimeId()Returns the value of theruntimeIdrecord component.- Returns:
- the value of the
runtimeIdrecord component
-