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
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final short[]private final SectionPosprivate final BlockState[]static final StreamCodec<FriendlyByteBuf, ClientboundSectionBlocksUpdatePacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundSectionBlocksUpdatePacket(SectionPos sectionPos, it.unimi.dsi.fastutil.shorts.ShortSet changes, LevelChunkSection section) private -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ClientGamePacketListener listener) voidrunUpdates(BiConsumer<BlockPos, BlockState> updateFunction) type()private voidwrite(FriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 sectionPos, it.unimi.dsi.fastutil.shorts.ShortSet changes, LevelChunkSection section) -
ClientboundSectionBlocksUpdatePacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
runUpdates
-