Class WorldTimeUpdateS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.WorldTimeUpdateS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class WorldTimeUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official ug
intermediary net/minecraft/class_2761
named net/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket
  • Field Details

    • time

      private final long time
      Mappings:
      Namespace Name Mixin selector
      official a Lug;a:J
      intermediary field_12621 Lnet/minecraft/class_2761;field_12621:J
      named time Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;time:J
    • timeOfDay

      private final long timeOfDay
      Mappings:
      Namespace Name Mixin selector
      official b Lug;b:J
      intermediary field_12620 Lnet/minecraft/class_2761;field_12620:J
      named timeOfDay Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;timeOfDay:J
  • Constructor Details

    • WorldTimeUpdateS2CPacket

      public WorldTimeUpdateS2CPacket(long time, long timeOfDay, boolean doDaylightCycle)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lug;<init>(JJZ)V
      intermediary <init> Lnet/minecraft/class_2761;<init>(JJZ)V
      named <init> Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;<init>(JJZ)V
    • WorldTimeUpdateS2CPacket

      public WorldTimeUpdateS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lug;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_2761;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lug;a(Lqu;)V
      intermediary method_11872 Lnet/minecraft/class_2761;method_11872(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getTime

      public long getTime()
      Mappings:
      Namespace Name Mixin selector
      official b Lug;b()J
      intermediary method_11871 Lnet/minecraft/class_2761;method_11871()J
      named getTime Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;getTime()J
    • getTimeOfDay

      public long getTimeOfDay()
      Mappings:
      Namespace Name Mixin selector
      official c Lug;c()J
      intermediary method_11873 Lnet/minecraft/class_2761;method_11873()J
      named getTimeOfDay Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;getTimeOfDay()J