Class ChunkDeltaUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ChunkDeltaUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official xhintermediary net/minecraft/class_2637named net/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockState[]private static final intprivate final short[]The packed local positions for each entry inblockStates.private final ChunkSectionPos -
Constructor Summary
ConstructorsConstructorDescriptionChunkDeltaUpdateS2CPacket(ChunkSectionPos sectionPos, ShortSet positions, ChunkSection section) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) voidvisitUpdates(BiConsumer<BlockPos, BlockState> visitor) Calls the given consumer for each pair of block position and block state contained in this packet.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
field_33341
private static final int field_33341- See Also:
- Mappings:
Namespace Name Mixin selector official aLxh;a:Iintermediary field_33341Lnet/minecraft/class_2637;field_33341:Inamed field_33341Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;field_33341:I
-
sectionPos
- Mappings:
Namespace Name Mixin selector official bLxh;b:Lhx;intermediary field_26345Lnet/minecraft/class_2637;field_26345:Lnet/minecraft/class_4076;named sectionPosLnet/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 cLxh;c:[Sintermediary field_26346Lnet/minecraft/class_2637;field_26346:[Snamed positionsLnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;positions:[S
-
blockStates
- Mappings:
Namespace Name Mixin selector official dLxh;d:[Ldby;intermediary field_26347Lnet/minecraft/class_2637;field_26347:[Lnet/minecraft/class_2680;named blockStatesLnet/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>Lxh;<init>(Lhx;Lit/unimi/dsi/fastutil/shorts/ShortSet;Ldeg;)Vintermediary <init>Lnet/minecraft/class_2637;<init>(Lnet/minecraft/class_4076;Lit/unimi/dsi/fastutil/shorts/ShortSet;Lnet/minecraft/class_2826;)Vnamed <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>Lxh;<init>(Lsf;)Vintermediary <init>Lnet/minecraft/class_2637;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLuo;a(Lsf;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLxh;a(Lur;)Vintermediary method_11392Lnet/minecraft/class_2637;method_11392(Lnet/minecraft/class_2602;)Vnamed applyLnet/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 aLxh;a(Ljava/util/function/BiConsumer;)Vintermediary method_30621Lnet/minecraft/class_2637;method_30621(Ljava/util/function/BiConsumer;)Vnamed visitUpdatesLnet/minecraft/network/packet/s2c/play/ChunkDeltaUpdateS2CPacket;visitUpdates(Ljava/util/function/BiConsumer;)V
-