Record Class MapDataPacket.ColorContent
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.MapDataPacket.ColorContent
- All Implemented Interfaces:
NetworkBuffer.Writer
- Enclosing class:
MapDataPacket
public static record MapDataPacket.ColorContent(byte columns, byte rows, byte x, byte z, byte @NotNull [] data)
extends Record
implements NetworkBuffer.Writer
-
Constructor Summary
ConstructorDescriptionColorContent
(byte columns, byte rows, byte x, byte z, byte @NotNull [] data) Creates an instance of aColorContent
record class.ColorContent
(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescriptionbyte
columns()
Returns the value of thecolumns
record component.byte @NotNull []
data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.byte
rows()
Returns the value of therows
record component.final String
toString()
Returns a string representation of this record class.void
write
(@NotNull NetworkBuffer writer) byte
x()
Returns the value of thex
record component.byte
z()
Returns the value of thez
record component.
-
Constructor Details
-
ColorContent
-
ColorContent
public ColorContent(byte columns, byte rows, byte x, byte z, byte @NotNull [] data) Creates an instance of aColorContent
record class.- Parameters:
columns
- the value for thecolumns
record componentrows
- the value for therows
record componentx
- the value for thex
record componentz
- the value for thez
record componentdata
- the value for thedata
record component
-
-
Method Details
-
write
- Specified by:
write
in interfaceNetworkBuffer.Writer
-
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 '=='. -
columns
public byte columns()Returns the value of thecolumns
record component.- Returns:
- the value of the
columns
record component
-
rows
public byte rows()Returns the value of therows
record component.- Returns:
- the value of the
rows
record component
-
x
public byte x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
z
public byte z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
data
public byte @NotNull [] data()Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-