public class LightUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
blockLightMask |
private List<byte[]> |
blockLightUpdates |
private int |
chunkX |
private int |
chunkZ |
private int |
filledBlockLightMask |
private int |
filledSkyLightMask |
private int |
skyLightMask |
private List<byte[]> |
skyLightUpdates |
Constructor and Description |
---|
LightUpdateS2CPacket() |
LightUpdateS2CPacket(ChunkPos chunkPos,
LightingProvider lightingProvider) |
LightUpdateS2CPacket(ChunkPos pos,
LightingProvider lightProvider,
int skyLightMask,
int blockLightMask) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getBlockLightMask() |
List<byte[]> |
getBlockLightUpdates() |
int |
getChunkX() |
int |
getChunkZ() |
int |
getFilledBlockLightMask() |
int |
getFilledSkyLightMask() |
int |
getSkyLightMask() |
List<byte[]> |
getSkyLightUpdates() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int chunkX
private int chunkZ
private int skyLightMask
private int blockLightMask
private int filledSkyLightMask
private int filledBlockLightMask
private List<byte[]> skyLightUpdates
private List<byte[]> blockLightUpdates
public LightUpdateS2CPacket()
public LightUpdateS2CPacket(ChunkPos chunkPos, LightingProvider lightingProvider)
public LightUpdateS2CPacket(ChunkPos pos, LightingProvider lightProvider, int skyLightMask, int blockLightMask)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getChunkX()
@Environment(value=CLIENT) public int getChunkZ()
@Environment(value=CLIENT) public int getSkyLightMask()
@Environment(value=CLIENT) public int getFilledSkyLightMask()
@Environment(value=CLIENT) public List<byte[]> getSkyLightUpdates()
@Environment(value=CLIENT) public int getBlockLightMask()
@Environment(value=CLIENT) public int getFilledBlockLightMask()
@Environment(value=CLIENT) public List<byte[]> getBlockLightUpdates()