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
official rj
intermediary net/minecraft/class_2637
named net/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket
  • Field Details

    • sectionPos

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

      private short[] positions
      The packed local positions for each entry in blockStates.
      See Also:
      ChunkSectionPos.packLocal(BlockPos)
      Mappings:
      Namespace Name Mixin selector
      official b Lrj;b:[S
      intermediary field_26346 Lnet/minecraft/class_2637;field_26346:[S
      named positions Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;positions:[S
    • blockStates

      private BlockState[] blockStates
      Mappings:
      Namespace Name Mixin selector
      official c Lrj;c:[Lcht;
      intermediary field_26347 Lnet/minecraft/class_2637;field_26347:[Lnet/minecraft/class_2680;
      named blockStates Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;blockStates:[Lnet/minecraft/block/BlockState;
    • field_26749

      private boolean field_26749
      Mappings:
      Namespace Name Mixin selector
      official d Lrj;d:Z
      intermediary field_26749 Lnet/minecraft/class_2637;field_26749:Z
      named field_26749 Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;field_26749:Z
  • Constructor Details

    • ChunkDeltaUpdateS2CPacket

      public ChunkDeltaUpdateS2CPacket()
    • ChunkDeltaUpdateS2CPacket

      public ChunkDeltaUpdateS2CPacket​(ChunkSectionPos sectionPos, ShortSet shortSet, ChunkSection section, boolean bool)
      Parameters:
      sectionPos - the position of the given chunk section that will be sent to the client
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrj;<init>(Lgq;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lcjx;Z)V
      intermediary <init> Lnet/minecraft/class_2637;<init>(Lnet/minecraft/class_4076;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lnet/minecraft/class_2826;Z)V
      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;Z)V
  • Method Details

    • allocateBuffers

      private void allocateBuffers​(int positionCount)
      Mappings:
      Namespace Name Mixin selector
      official a Lrj;a(I)V
      intermediary method_30620 Lnet/minecraft/class_2637;method_30620(I)V
      named allocateBuffers Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;allocateBuffers(I)V
    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

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

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

      @Environment(CLIENT) public boolean method_31179()
      Mappings:
      Namespace Name Mixin selector
      official b Lrj;b()Z
      intermediary method_31179 Lnet/minecraft/class_2637;method_31179()Z
      named method_31179 Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;method_31179()Z