Class ClientboundSetTimePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundSetTimePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetTimePacket(long worldAge, long time) ClientboundSetTimePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanlonggetTime()longinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSetTimePacketwithTime(long time) @NonNull ClientboundSetTimePacketwithWorldAge(long worldAge) 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 worldAge, long time)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getWorldAge
public long getWorldAge() -
getTime
public long getTime() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withWorldAge
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-