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

    • field_33341

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

      private final ChunkSectionPos sectionPos
      Mappings:
      Namespace Name Mixin selector
      official b Lxu;b:Lhw;
      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 final short[] positions
      The packed local positions for each entry in blockStates.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lxu;c:[S
      intermediary field_26346 Lnet/minecraft/class_2637;field_26346:[S
      named positions Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;positions:[S
    • blockStates

      private final BlockState[] blockStates
      Mappings:
      Namespace Name Mixin selector
      official d Lxu;d:[Ldbq;
      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;
    • noLightingUpdates

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

    • ChunkDeltaUpdateS2CPacket

      public ChunkDeltaUpdateS2CPacket(ChunkSectionPos sectionPos, ShortSet positions, ChunkSection section, boolean noLightingUpdates)
      Parameters:
      sectionPos - the position of the given chunk section that will be sent to the client
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxu;<init>(Lhw;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lddz;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
    • ChunkDeltaUpdateS2CPacket

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

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvb;a(Lss;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/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 Lxu;a(Lve;)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> visitor)
      Calls the given consumer for each pair of block position and block state contained in this packet.
      Mappings:
      Namespace Name Mixin selector
      official a Lxu;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
    • shouldSkipLightingUpdates

      public boolean shouldSkipLightingUpdates()
      Mappings:
      Namespace Name Mixin selector
      official a Lxu;a()Z
      intermediary method_31179 Lnet/minecraft/class_2637;method_31179()Z
      named shouldSkipLightingUpdates Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;shouldSkipLightingUpdates()Z