Class ClientboundSetTimePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundSetTimePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetTimePacket(long gameTime, long dayTime, boolean tickDayTime) ClientboundSetTimePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanlonglonginthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSetTimePacketwithDayTime(long dayTime) @NonNull ClientboundSetTimePacketwithGameTime(long gameTime) @NonNull ClientboundSetTimePacketwithTickDayTime(boolean tickDayTime) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetTimePacket
-
ClientboundSetTimePacket
public ClientboundSetTimePacket(long gameTime, long dayTime, boolean tickDayTime)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getGameTime
public long getGameTime() -
getDayTime
public long getDayTime() -
isTickDayTime
public boolean isTickDayTime() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withGameTime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDayTime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTickDayTime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-