Package ac.boar.anticheat.ack.types
Record Class ContainerOpenAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.ContainerOpenAck
- All Implemented Interfaces:
Acknowledgment
public record ContainerOpenAck(byte id, org.cloudburstmc.protocol.bedrock.data.inventory.ContainerType type, org.cloudburstmc.math.vector.Vector3i blockPosition, long uniqueEntityId)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionContainerOpenAck(byte id, org.cloudburstmc.protocol.bedrock.data.inventory.ContainerType type, org.cloudburstmc.math.vector.Vector3i blockPosition, long uniqueEntityId) Creates an instance of aContainerOpenAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.math.vector.Vector3iReturns the value of theblockPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byteid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.org.cloudburstmc.protocol.bedrock.data.inventory.ContainerTypetype()Returns the value of thetyperecord component.longReturns the value of theuniqueEntityIdrecord component.
-
Constructor Details
-
ContainerOpenAck
public ContainerOpenAck(byte id, org.cloudburstmc.protocol.bedrock.data.inventory.ContainerType type, org.cloudburstmc.math.vector.Vector3i blockPosition, long uniqueEntityId) Creates an instance of aContainerOpenAckrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentblockPosition- the value for theblockPositionrecord componentuniqueEntityId- the value for theuniqueEntityIdrecord 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 '=='. -
id
public byte id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
public org.cloudburstmc.protocol.bedrock.data.inventory.ContainerType type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
blockPosition
public org.cloudburstmc.math.vector.Vector3i blockPosition()Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
uniqueEntityId
public long uniqueEntityId()Returns the value of theuniqueEntityIdrecord component.- Returns:
- the value of the
uniqueEntityIdrecord component
-