Package ac.boar.anticheat.ack.types
Record Class InventoryContentAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.InventoryContentAck
- All Implemented Interfaces:
Acknowledgment
public record InventoryContentAck(int containerId, List<org.cloudburstmc.protocol.bedrock.data.inventory.ItemData> contents, org.cloudburstmc.protocol.bedrock.data.inventory.ItemData storageItem)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryContentAck(int containerId, List<org.cloudburstmc.protocol.bedrock.data.inventory.ItemData> contents, org.cloudburstmc.protocol.bedrock.data.inventory.ItemData storageItem) Creates an instance of aInventoryContentAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecontainerIdrecord component.List<org.cloudburstmc.protocol.bedrock.data.inventory.ItemData> contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.cloudburstmc.protocol.bedrock.data.inventory.ItemDataReturns the value of thestorageItemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InventoryContentAck
public InventoryContentAck(int containerId, List<org.cloudburstmc.protocol.bedrock.data.inventory.ItemData> contents, org.cloudburstmc.protocol.bedrock.data.inventory.ItemData storageItem) Creates an instance of aInventoryContentAckrecord class.- Parameters:
containerId- the value for thecontainerIdrecord componentcontents- the value for thecontentsrecord componentstorageItem- the value for thestorageItemrecord 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 '=='. -
containerId
public int containerId()Returns the value of thecontainerIdrecord component.- Returns:
- the value of the
containerIdrecord component
-
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
storageItem
public org.cloudburstmc.protocol.bedrock.data.inventory.ItemData storageItem()Returns the value of thestorageItemrecord component.- Returns:
- the value of the
storageItemrecord component
-