Package ac.boar.anticheat.data.input
Record Class TickData
java.lang.Object
java.lang.Record
ac.boar.anticheat.data.input.TickData
public record TickData(org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet, EnumSet<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags, Map<String,AttributeInstance> attributes, EntityDimensions dimensions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTickData(org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet, EnumSet<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags, Map<String, AttributeInstance> attributes, EntityDimensions dimensions) Creates an instance of aTickDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.Returns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.EnumSet<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacketpacket()Returns the value of thepacketrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TickData
public TickData(org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet, EnumSet<org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag> flags, Map<String, AttributeInstance> attributes, EntityDimensions dimensions) Creates an instance of aTickDatarecord class.- Parameters:
packet- the value for thepacketrecord componentflags- the value for theflagsrecord componentattributes- the value for theattributesrecord componentdimensions- the value for thedimensionsrecord 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). -
packet
public org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet()Returns the value of thepacketrecord component.- Returns:
- the value of the
packetrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
dimensions
Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-