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
official rz
intermediary net/minecraft/class_2668
named net/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket
  • Field Details

    • NO_RESPAWN_BLOCK

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • GameStateChangeS2CPacket

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

      public GameStateChangeS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrz;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_2668;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;<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 Lrz;a(Lqu;)V
      intermediary method_11490 Lnet/minecraft/class_2668;method_11490(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/GameStateChangeS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getReason

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

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