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
named net/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket
intermediary net/minecraft/class_2761
official afk
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47991 Lnet/minecraft/class_2761;field_47991:Lnet/minecraft/class_9139;
      official a Lafk;a:Lyw;
    • time

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

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

    • WorldTimeUpdateS2CPacket

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

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

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55938 Lnet/minecraft/class_2761;method_55938(Lnet/minecraft/class_2540;)V
      official a Lafk;a(Lvv;)V
    • getPacketId

      public PacketType<WorldTimeUpdateS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzf;a()Lzh;
    • apply

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

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

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