Record Class ClientUpdateSignPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientUpdateSignPacket
- All Implemented Interfaces:
ClientPacket
public record ClientUpdateSignPacket(Point blockPosition, boolean isFrontText, List<String> lines)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientUpdateSignPacket(Point blockPosition, boolean isFrontText, List<String> lines) Creates an instance of aClientUpdateSignPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.booleanReturns the value of theisFrontTextrecord component.lines()Returns the value of thelinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientUpdateSignPacket
Creates an instance of aClientUpdateSignPacketrecord class.- Parameters:
blockPosition- the value for theblockPositionrecord componentisFrontText- the value for theisFrontTextrecord componentlines- the value for thelinesrecord 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. -
blockPosition
Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
isFrontText
public boolean isFrontText()Returns the value of theisFrontTextrecord component.- Returns:
- the value of the
isFrontTextrecord component
-
lines
-