Record Class ChunkData
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.data.ChunkData
- All Implemented Interfaces:
NetworkBuffer.Writer
public record ChunkData(@NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound heightmaps, byte @NotNull [] data, @NotNull Map<Integer,Block> blockEntities)
extends Record
implements NetworkBuffer.Writer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntitiesrecord component.byte @NotNull []data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.jglrxavpok.hephaistos.nbt.NBTCompoundReturns the value of theheightmapsrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(@NotNull NetworkBuffer writer)
-
Constructor Details
-
ChunkData
public ChunkData(@NotNull @NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound heightmaps, byte @NotNull [] data, @NotNull @NotNull Map<Integer, Block> blockEntities) Creates an instance of aChunkDatarecord class.- Parameters:
heightmaps- the value for theheightmapsrecord componentdata- the value for thedatarecord componentblockEntities- the value for theblockEntitiesrecord component
-
ChunkData
-
-
Method Details
-
write
- Specified by:
writein 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. All components in this record class are compared withObjects::equals(Object,Object). -
heightmaps
@NotNull public @NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound heightmaps()Returns the value of theheightmapsrecord component.- Returns:
- the value of the
heightmapsrecord component
-
data
public byte @NotNull [] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
blockEntities
Returns the value of theblockEntitiesrecord component.- Returns:
- the value of the
blockEntitiesrecord component
-