Class GameStateChangeS2CPacket

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

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

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47927 Lnet/minecraft/class_2668;field_47927:Lnet/minecraft/class_9139;
      official a Lacu;a:Lys;
    • NO_RESPAWN_BLOCK

      public static final GameStateChangeS2CPacket.Reason NO_RESPAWN_BLOCK
      Mappings:
      Namespace Name Mixin selector
      named NO_RESPAWN_BLOCK Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;NO_RESPAWN_BLOCK:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25645 Lnet/minecraft/class_2668;field_25645:Lnet/minecraft/class_2668$class_5402;
      official b Lacu;b:Lacu$a;
    • RAIN_STARTED

      public static final GameStateChangeS2CPacket.Reason RAIN_STARTED
      Mappings:
      Namespace Name Mixin selector
      named RAIN_STARTED Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;RAIN_STARTED:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25646 Lnet/minecraft/class_2668;field_25646:Lnet/minecraft/class_2668$class_5402;
      official c Lacu;c:Lacu$a;
    • RAIN_STOPPED

      public static final GameStateChangeS2CPacket.Reason RAIN_STOPPED
      Mappings:
      Namespace Name Mixin selector
      named RAIN_STOPPED Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;RAIN_STOPPED:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25647 Lnet/minecraft/class_2668;field_25647:Lnet/minecraft/class_2668$class_5402;
      official d Lacu;d:Lacu$a;
    • GAME_MODE_CHANGED

      public static final GameStateChangeS2CPacket.Reason GAME_MODE_CHANGED
      Mappings:
      Namespace Name Mixin selector
      named GAME_MODE_CHANGED Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;GAME_MODE_CHANGED:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25648 Lnet/minecraft/class_2668;field_25648:Lnet/minecraft/class_2668$class_5402;
      official e Lacu;e:Lacu$a;
    • GAME_WON

      public static final GameStateChangeS2CPacket.Reason GAME_WON
      Mappings:
      Namespace Name Mixin selector
      named GAME_WON Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;GAME_WON:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25649 Lnet/minecraft/class_2668;field_25649:Lnet/minecraft/class_2668$class_5402;
      official f Lacu;f:Lacu$a;
    • DEMO_MESSAGE_SHOWN

      public static final GameStateChangeS2CPacket.Reason DEMO_MESSAGE_SHOWN
      Mappings:
      Namespace Name Mixin selector
      named DEMO_MESSAGE_SHOWN Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;DEMO_MESSAGE_SHOWN:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25650 Lnet/minecraft/class_2668;field_25650:Lnet/minecraft/class_2668$class_5402;
      official g Lacu;g:Lacu$a;
    • PROJECTILE_HIT_PLAYER

      public static final GameStateChangeS2CPacket.Reason PROJECTILE_HIT_PLAYER
      Mappings:
      Namespace Name Mixin selector
      named PROJECTILE_HIT_PLAYER Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;PROJECTILE_HIT_PLAYER:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25651 Lnet/minecraft/class_2668;field_25651:Lnet/minecraft/class_2668$class_5402;
      official h Lacu;h:Lacu$a;
    • RAIN_GRADIENT_CHANGED

      public static final GameStateChangeS2CPacket.Reason RAIN_GRADIENT_CHANGED
      Mappings:
      Namespace Name Mixin selector
      named RAIN_GRADIENT_CHANGED Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;RAIN_GRADIENT_CHANGED:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25652 Lnet/minecraft/class_2668;field_25652:Lnet/minecraft/class_2668$class_5402;
      official i Lacu;i:Lacu$a;
    • THUNDER_GRADIENT_CHANGED

      public static final GameStateChangeS2CPacket.Reason THUNDER_GRADIENT_CHANGED
      Mappings:
      Namespace Name Mixin selector
      named THUNDER_GRADIENT_CHANGED Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;THUNDER_GRADIENT_CHANGED:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25653 Lnet/minecraft/class_2668;field_25653:Lnet/minecraft/class_2668$class_5402;
      official j Lacu;j:Lacu$a;
    • PUFFERFISH_STING

      public static final GameStateChangeS2CPacket.Reason PUFFERFISH_STING
      Mappings:
      Namespace Name Mixin selector
      named PUFFERFISH_STING Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;PUFFERFISH_STING:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25654 Lnet/minecraft/class_2668;field_25654:Lnet/minecraft/class_2668$class_5402;
      official k Lacu;k:Lacu$a;
    • ELDER_GUARDIAN_EFFECT

      public static final GameStateChangeS2CPacket.Reason ELDER_GUARDIAN_EFFECT
      Mappings:
      Namespace Name Mixin selector
      named ELDER_GUARDIAN_EFFECT Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;ELDER_GUARDIAN_EFFECT:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25655 Lnet/minecraft/class_2668;field_25655:Lnet/minecraft/class_2668$class_5402;
      official l Lacu;l:Lacu$a;
    • IMMEDIATE_RESPAWN

      public static final GameStateChangeS2CPacket.Reason IMMEDIATE_RESPAWN
      Mappings:
      Namespace Name Mixin selector
      named IMMEDIATE_RESPAWN Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;IMMEDIATE_RESPAWN:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_25656 Lnet/minecraft/class_2668;field_25656:Lnet/minecraft/class_2668$class_5402;
      official m Lacu;m:Lacu$a;
    • LIMITED_CRAFTING_TOGGLED

      public static final GameStateChangeS2CPacket.Reason LIMITED_CRAFTING_TOGGLED
      Mappings:
      Namespace Name Mixin selector
      named LIMITED_CRAFTING_TOGGLED Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;LIMITED_CRAFTING_TOGGLED:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_46189 Lnet/minecraft/class_2668;field_46189:Lnet/minecraft/class_2668$class_5402;
      official n Lacu;n:Lacu$a;
    • INITIAL_CHUNKS_COMING

      public static final GameStateChangeS2CPacket.Reason INITIAL_CHUNKS_COMING
      Mappings:
      Namespace Name Mixin selector
      named INITIAL_CHUNKS_COMING Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;INITIAL_CHUNKS_COMING:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_46637 Lnet/minecraft/class_2668;field_46637:Lnet/minecraft/class_2668$class_5402;
      official o Lacu;o:Lacu$a;
    • DEMO_OPEN_SCREEN

      public static final int DEMO_OPEN_SCREEN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEMO_OPEN_SCREEN Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;DEMO_OPEN_SCREEN:I
      intermediary field_33328 Lnet/minecraft/class_2668;field_33328:I
      official p Lacu;p:I
    • DEMO_MOVEMENT_HELP

      public static final int DEMO_MOVEMENT_HELP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEMO_MOVEMENT_HELP Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;DEMO_MOVEMENT_HELP:I
      intermediary field_33329 Lnet/minecraft/class_2668;field_33329:I
      official q Lacu;q:I
    • DEMO_JUMP_HELP

      public static final int DEMO_JUMP_HELP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEMO_JUMP_HELP Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;DEMO_JUMP_HELP:I
      intermediary field_33330 Lnet/minecraft/class_2668;field_33330:I
      official r Lacu;r:I
    • DEMO_INVENTORY_HELP

      public static final int DEMO_INVENTORY_HELP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEMO_INVENTORY_HELP Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;DEMO_INVENTORY_HELP:I
      intermediary field_33331 Lnet/minecraft/class_2668;field_33331:I
      official s Lacu;s:I
    • DEMO_EXPIRY_NOTICE

      public static final int DEMO_EXPIRY_NOTICE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEMO_EXPIRY_NOTICE Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;DEMO_EXPIRY_NOTICE:I
      intermediary field_33332 Lnet/minecraft/class_2668;field_33332:I
      official t Lacu;t:I
    • reason

      private final GameStateChangeS2CPacket.Reason reason
      Mappings:
      Namespace Name Mixin selector
      named reason Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;reason:Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary field_12199 Lnet/minecraft/class_2668;field_12199:Lnet/minecraft/class_2668$class_5402;
      official u Lacu;u:Lacu$a;
    • value

      private final float value
      Mappings:
      Namespace Name Mixin selector
      named value Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;value:F
      intermediary field_12198 Lnet/minecraft/class_2668;field_12198:F
      official v Lacu;v:F
  • Constructor Details

    • GameStateChangeS2CPacket

      public GameStateChangeS2CPacket(GameStateChangeS2CPacket.Reason reason, float value)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;<init>(Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;F)V
      intermediary <init> Lnet/minecraft/class_2668;<init>(Lnet/minecraft/class_2668$class_5402;F)V
      official <init> Lacu;<init>(Lacu$a;F)V
    • GameStateChangeS2CPacket

      private GameStateChangeS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2668;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lacu;<init>(Lvr;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55879 Lnet/minecraft/class_2668;method_55879(Lnet/minecraft/class_2540;)V
      official a Lacu;a(Lvr;)V
    • getPacketId

      public PacketType<GameStateChangeS2CPacket> 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 Lzb;a()Lzd;
    • 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/GameStateChangeS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11490 Lnet/minecraft/class_2668;method_11490(Lnet/minecraft/class_2602;)V
      official a Lacu;a(Labn;)V
    • getReason

      public GameStateChangeS2CPacket.Reason getReason()
      Mappings:
      Namespace Name Mixin selector
      named getReason Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;getReason()Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket$Reason;
      intermediary method_11491 Lnet/minecraft/class_2668;method_11491()Lnet/minecraft/class_2668$class_5402;
      official b Lacu;b()Lacu$a;
    • getValue

      public float getValue()
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;getValue()F
      intermediary method_11492 Lnet/minecraft/class_2668;method_11492()F
      official e Lacu;e()F