Record Class DisguisedChatPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.DisguisedChatPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDisguisedChatPacket(Component message, int type, Component senderName, @Nullable Component targetName) Creates an instance of aDisguisedChatPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thesenderNamerecord component.Returns the value of thetargetNamerecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
DisguisedChatPacket
public DisguisedChatPacket(Component message, int type, Component senderName, @Nullable @Nullable Component targetName) Creates an instance of aDisguisedChatPacketrecord class.- Parameters:
message- the value for themessagerecord componenttype- the value for thetyperecord componentsenderName- the value for thesenderNamerecord componenttargetName- the value for thetargetNamerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
senderName
Returns the value of thesenderNamerecord component.- Returns:
- the value of the
senderNamerecord component
-
targetName
-