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[]private final boolean -
Constructor Summary
ConstructorsConstructorDescriptionClientboundSectionBlocksUpdatePacket(SectionPos p_132986_, it.unimi.dsi.fastutil.shorts.ShortSet p_132987_, LevelChunkSection p_132988_, boolean p_132989_) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ClientGamePacketListener p_132999_) voidrunUpdates(BiConsumer<BlockPos, BlockState> p_132993_) booleanvoidwrite(FriendlyByteBuf p_133002_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
POS_IN_SECTION_BITS
private static final int POS_IN_SECTION_BITS- See Also:
-
sectionPos
-
positions
private final short[] positions -
states
-
suppressLightUpdates
private final boolean suppressLightUpdates
-
-
Constructor Details
-
ClientboundSectionBlocksUpdatePacket
public ClientboundSectionBlocksUpdatePacket(SectionPos p_132986_, it.unimi.dsi.fastutil.shorts.ShortSet p_132987_, LevelChunkSection p_132988_, boolean p_132989_) -
ClientboundSectionBlocksUpdatePacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
runUpdates
-
shouldSuppressLightUpdates
public boolean shouldSuppressLightUpdates()
-