public class WorldTimeUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private long |
time |
private long |
timeOfDay |
Constructor and Description |
---|
WorldTimeUpdateS2CPacket() |
WorldTimeUpdateS2CPacket(long time,
long timeOfDay,
boolean doDaylightCycle) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
long |
getTime() |
long |
getTimeOfDay() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public WorldTimeUpdateS2CPacket()
public WorldTimeUpdateS2CPacket(long time, long timeOfDay, boolean doDaylightCycle)
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 long getTime()
@Environment(value=CLIENT) public long getTimeOfDay()