Class ChunkDeltaUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ChunkDeltaUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official zi
intermediary net/minecraft/class_2637
named net/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockState[]
private static final int
private final short[]
The packed local positions for each entry inblockStates
.private final ChunkSectionPos
-
Constructor Summary
ConstructorDescriptionChunkDeltaUpdateS2CPacket
(ChunkSectionPos sectionPos, ShortSet positions, ChunkSection section) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) void
visitUpdates
(BiConsumer<BlockPos, BlockState> visitor) Calls the given consumer for each pair of block position and block state contained in this packet.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
field_33341
private static final int field_33341- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lzi;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
- Mappings:
Namespace Name Mixin selector official b
Lzi;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[] positionsThe packed local positions for each entry inblockStates
.- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lzi;c:[S
intermediary field_26346
Lnet/minecraft/class_2637;field_26346:[S
named positions
Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;positions:[S
-
blockStates
- Mappings:
Namespace Name Mixin selector official d
Lzi;d:[Ldfj;
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;
-
-
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 official <init>
Lzi;<init>(Lhw;Lit/unimi/dsi/fastutil/shorts/ShortSet;Ldhr;)V
intermediary <init>
Lnet/minecraft/class_2637;<init>(Lnet/minecraft/class_4076;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lnet/minecraft/class_2826;)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;)V
-
ChunkDeltaUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lzi;<init>(Lso;)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
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lvd;a(Lso;)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
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lzi;a(Lww;)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
Calls the given consumer for each pair of block position and block state contained in this packet.- Mappings:
Namespace Name Mixin selector official a
Lzi;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
-