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

    • time

      private long time
      Mappings:
      Namespace Name Mixin selector
      official a Lsc;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 long timeOfDay
      Mappings:
      Namespace Name Mixin selector
      official b Lsc;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()
    • WorldTimeUpdateS2CPacket

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

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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 Lsc;a(Lpd;)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

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

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