Class ClientboundLevelChunkWithLightPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundLevelChunkWithLightPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundLevelChunkWithLightPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundLevelChunkWithLightPacket

      public ClientboundLevelChunkWithLightPacket(io.netty.buffer.ByteBuf in, Session session)
    • ClientboundLevelChunkWithLightPacket

      public ClientboundLevelChunkWithLightPacket(io.netty.buffer.ByteBuf in, PalettedWorldState palettedWorldState)
    • ClientboundLevelChunkWithLightPacket

      public ClientboundLevelChunkWithLightPacket(int x, int z, @NonNull ChunkSection[] sections, @NonNull Map<HeightmapTypes,long[]> heightMaps, @NonNull BlockEntityInfo[] blockEntities, @NonNull LightUpdateData lightData)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      Specified by:
      serialize in interface MinecraftPacket
    • getX

      public int getX()
    • getZ

      public int getZ()
    • getSections

      public @NonNull ChunkSection[] getSections()
    • getHeightMaps

      public @NonNull Map<HeightmapTypes,long[]> getHeightMaps()
    • getBlockEntities

      public @NonNull BlockEntityInfo[] getBlockEntities()
    • getLightData

      public @NonNull LightUpdateData getLightData()
    • setSections

      public void setSections(@NonNull ChunkSection[] sections)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withX

      public @NonNull ClientboundLevelChunkWithLightPacket withX(int x)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withZ

      public @NonNull ClientboundLevelChunkWithLightPacket withZ(int z)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSections

      public @NonNull ClientboundLevelChunkWithLightPacket withSections(@NonNull ChunkSection[] sections)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHeightMaps

      public @NonNull ClientboundLevelChunkWithLightPacket withHeightMaps(@NonNull Map<HeightmapTypes,long[]> heightMaps)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBlockEntities

      public @NonNull ClientboundLevelChunkWithLightPacket withBlockEntities(@NonNull BlockEntityInfo[] blockEntities)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLightData

      public @NonNull ClientboundLevelChunkWithLightPacket withLightData(@NonNull LightUpdateData lightData)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object