Class LightUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.LightUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class LightUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private intblockLightMaskprivate List<byte[]>blockLightUpdatesprivate intchunkXprivate intchunkZprivate booleanfield_25659private intfilledBlockLightMaskprivate intfilledSkyLightMaskprivate intskyLightMaskprivate List<byte[]>skyLightUpdates -
Constructor Summary
Constructors Constructor Description LightUpdateS2CPacket()LightUpdateS2CPacket(ChunkPos chunkPos, LightingProvider lightingProvider, boolean bool)LightUpdateS2CPacket(ChunkPos pos, LightingProvider lightProvider, int skyLightMask, int blockLightMask, boolean bool) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetBlockLightMask()List<byte[]>getBlockLightUpdates()intgetChunkX()intgetChunkZ()intgetFilledBlockLightMask()intgetFilledSkyLightMask()intgetSkyLightMask()List<byte[]>getSkyLightUpdates()booleanmethod_30006()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
chunkX
private int chunkX -
chunkZ
private int chunkZ -
skyLightMask
private int skyLightMask -
blockLightMask
private int blockLightMask -
filledSkyLightMask
private int filledSkyLightMask -
filledBlockLightMask
private int filledBlockLightMask -
skyLightUpdates
-
blockLightUpdates
-
field_25659
private boolean field_25659
-
-
Constructor Details
-
LightUpdateS2CPacket
public LightUpdateS2CPacket() -
LightUpdateS2CPacket
-
LightUpdateS2CPacket
public LightUpdateS2CPacket(ChunkPos pos, LightingProvider lightProvider, int skyLightMask, int blockLightMask, boolean bool)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getChunkX
@Environment(CLIENT) public int getChunkX() -
getChunkZ
@Environment(CLIENT) public int getChunkZ() -
getSkyLightMask
@Environment(CLIENT) public int getSkyLightMask() -
getFilledSkyLightMask
@Environment(CLIENT) public int getFilledSkyLightMask() -
getSkyLightUpdates
-
getBlockLightMask
@Environment(CLIENT) public int getBlockLightMask() -
getFilledBlockLightMask
@Environment(CLIENT) public int getFilledBlockLightMask() -
getBlockLightUpdates
-
method_30006
@Environment(CLIENT) public boolean method_30006()
-