Package de.teamlapen.werewolves.network
Record Class ClientboundAttackTargetEventPacket
java.lang.Object
java.lang.Record
de.teamlapen.werewolves.network.ClientboundAttackTargetEventPacket
- All Implemented Interfaces:
de.teamlapen.lib.network.IMessage,de.teamlapen.lib.network.IMessage.IClientBoundMessage
public record ClientboundAttackTargetEventPacket(int entityId)
extends Record
implements de.teamlapen.lib.network.IMessage.IClientBoundMessage
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.teamlapen.lib.network.IMessage
de.teamlapen.lib.network.IMessage.IClientBoundMessage, de.teamlapen.lib.network.IMessage.IServerBoundMessage -
Constructor Summary
ConstructorsConstructorDescriptionClientboundAttackTargetEventPacket(int entityId) Creates an instance of aClientboundAttackTargetEventPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientboundAttackTargetEventPacket
public ClientboundAttackTargetEventPacket(int entityId) Creates an instance of aClientboundAttackTargetEventPacketrecord class.- Parameters:
entityId- the value for theentityIdrecord 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 with '=='. -
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-