Record Class ChunkData
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.data.ChunkData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntities
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.@NotNull Map
<Heightmap.Type, long[]> Returns the value of theheightmaps
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
-
Constructor Details
-
ChunkData
public ChunkData(@NotNull @NotNull Map<Heightmap.Type, long[]> heightmaps, byte @NotNull [] data, @NotNull @NotNull Map<Integer, Block> blockEntities) Creates an instance of aChunkData
record class.- Parameters:
heightmaps
- the value for theheightmaps
record componentdata
- the value for thedata
record componentblockEntities
- the value for theblockEntities
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
heightmaps
Returns the value of theheightmaps
record component.- Returns:
- the value of the
heightmaps
record component
-
data
public byte @NotNull [] data()Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
blockEntities
-