Package ac.boar.anticheat.ack.types
Record Class BlockEntityUpdateAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.BlockEntityUpdateAck
- All Implemented Interfaces:
Acknowledgment
public record BlockEntityUpdateAck(org.cloudburstmc.math.vector.Vector3i position, org.cloudburstmc.nbt.NbtMap data)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityUpdateAck(org.cloudburstmc.math.vector.Vector3i position, org.cloudburstmc.nbt.NbtMap data) Creates an instance of aBlockEntityUpdateAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.nbt.NbtMapdata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.cloudburstmc.math.vector.Vector3iposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockEntityUpdateAck
public BlockEntityUpdateAck(org.cloudburstmc.math.vector.Vector3i position, org.cloudburstmc.nbt.NbtMap data) Creates an instance of aBlockEntityUpdateAckrecord class.- Parameters:
position- the value for thepositionrecord componentdata- the value for thedatarecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
position
public org.cloudburstmc.math.vector.Vector3i position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
data
public org.cloudburstmc.nbt.NbtMap data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-