Class ClientboundSectionBlocksUpdatePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundSectionBlocksUpdatePacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSectionBlocksUpdatePacket(int chunkX, int chunkY, int chunkZ, BlockChangeEntry... entries) ClientboundSectionBlocksUpdatePacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintintThe server sends the record position in terms of the local chunk coordinate but it is stored here in terms of global coordinates.inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSectionBlocksUpdatePacketwithChunkX(int chunkX) @NonNull ClientboundSectionBlocksUpdatePacketwithChunkY(int chunkY) @NonNull ClientboundSectionBlocksUpdatePacketwithChunkZ(int chunkZ) @NonNull ClientboundSectionBlocksUpdatePacketwithEntries(BlockChangeEntry[] entries) The server sends the record position in terms of the local chunk coordinate but it is stored here in terms of global coordinates.Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSectionBlocksUpdatePacket
public ClientboundSectionBlocksUpdatePacket(int chunkX, int chunkY, int chunkZ, BlockChangeEntry... entries) -
ClientboundSectionBlocksUpdatePacket
public ClientboundSectionBlocksUpdatePacket(io.netty.buffer.ByteBuf in)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getChunkX
public int getChunkX() -
getChunkY
public int getChunkY() -
getChunkZ
public int getChunkZ() -
getEntries
The server sends the record position in terms of the local chunk coordinate but it is stored here in terms of global coordinates. -
equals
-
canEqual
-
hashCode
-
toString
-
withChunkX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChunkY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChunkZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEntries
The server sends the record position in terms of the local chunk coordinate but it is stored here in terms of global coordinates.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-