Class ClientboundSectionBlocksUpdatePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSectionBlocksUpdatePacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final short[]
private final SectionPos
private final BlockState[]
static final StreamCodec
<FriendlyByteBuf, ClientboundSectionBlocksUpdatePacket> -
Constructor Summary
ModifierConstructorDescriptionClientboundSectionBlocksUpdatePacket
(SectionPos p_284963_, it.unimi.dsi.fastutil.shorts.ShortSet p_285027_, LevelChunkSection p_285414_) private
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(ClientGamePacketListener p_132999_) void
runUpdates
(BiConsumer<BlockPos, BlockState> p_132993_) type()
private void
write
(FriendlyByteBuf p_133002_) 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.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
POS_IN_SECTION_BITS
private static final int POS_IN_SECTION_BITS- See Also:
-
sectionPos
-
positions
private final short[] positions -
states
-
-
Constructor Details
-
ClientboundSectionBlocksUpdatePacket
public ClientboundSectionBlocksUpdatePacket(SectionPos p_284963_, it.unimi.dsi.fastutil.shorts.ShortSet p_285027_, LevelChunkSection p_285414_) -
ClientboundSectionBlocksUpdatePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
runUpdates
-