Class ChunkDeltaUpdateS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.ChunkDeltaUpdateS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class ChunkDeltaUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket
intermediary net/minecraft/class_2637
official aey
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47964 Lnet/minecraft/class_2637;field_47964:Lnet/minecraft/class_9139;
      official a Laey;a:Lzn;
    • field_33341

      private static final int field_33341
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_33341 Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;field_33341:I
      intermediary field_33341 Lnet/minecraft/class_2637;field_33341:I
      official b Laey;b:I
    • sectionPos

      private final ChunkSectionPos sectionPos
      Mappings:
      Namespace Name Mixin selector
      named sectionPos Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;sectionPos:Lnet/minecraft/util/math/ChunkSectionPos;
      intermediary field_26345 Lnet/minecraft/class_2637;field_26345:Lnet/minecraft/class_4076;
      official c Laey;c:Lkb;
    • positions

      private final short[] positions
      The packed local positions for each entry in blockStates.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named positions Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;positions:[S
      intermediary field_26346 Lnet/minecraft/class_2637;field_26346:[S
      official d Laey;d:[S
    • blockStates

      private final BlockState[] blockStates
      Mappings:
      Namespace Name Mixin selector
      named blockStates Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;blockStates:[Lnet/minecraft/block/BlockState;
      intermediary field_26347 Lnet/minecraft/class_2637;field_26347:[Lnet/minecraft/class_2680;
      official e Laey;e:[Ldse;
  • Constructor Details

    • ChunkDeltaUpdateS2CPacket

      public ChunkDeltaUpdateS2CPacket(ChunkSectionPos sectionPos, ShortSet positions, ChunkSection section)
      Parameters:
      sectionPos - the position of the given chunk section that will be sent to the client
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;<init>(Lnet/minecraft/util/math/ChunkSectionPos;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lnet/minecraft/world/chunk/ChunkSection;)V
      intermediary <init> Lnet/minecraft/class_2637;<init>(Lnet/minecraft/class_4076;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lnet/minecraft/class_2826;)V
      official <init> Laey;<init>(Lkb;Lit/unimi/dsi/fastutil/shorts/ShortSet;Ldul;)V
    • ChunkDeltaUpdateS2CPacket

      private ChunkDeltaUpdateS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2637;<init>(Lnet/minecraft/class_2540;)V
      official <init> Laey;<init>(Lwm;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55911 Lnet/minecraft/class_2637;method_55911(Lnet/minecraft/class_2540;)V
      official a Laey;a(Lwm;)V
    • getPacketId

      public PacketType<ChunkDeltaUpdateS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzw;a()Lzy;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11392 Lnet/minecraft/class_2637;method_11392(Lnet/minecraft/class_2602;)V
      official a Laey;a(Laci;)V
    • visitUpdates

      public void visitUpdates(BiConsumer<BlockPos,BlockState> visitor)
      Calls the given consumer for each pair of block position and block state contained in this packet.
      Mappings:
      Namespace Name Mixin selector
      named visitUpdates Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;visitUpdates(Ljava/util/function/BiConsumer;)V
      intermediary method_30621 Lnet/minecraft/class_2637;method_30621(Ljava/util/function/BiConsumer;)V
      official a Laey;a(Ljava/util/function/BiConsumer;)V