Class GameJoinS2CPacket

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

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

    • playerEntityId

      private int playerEntityId
      Mappings:
      Namespace Name Mixin selector
      official a Lgu;a:I
      intermediary field_8672 Lnet/minecraft/class_2025;field_8672:I
      named playerEntityId Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;playerEntityId:I
    • hardcore

      private boolean hardcore
      Mappings:
      Namespace Name Mixin selector
      official b Lgu;b:Z
      intermediary field_8673 Lnet/minecraft/class_2025;field_8673:Z
      named hardcore Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;hardcore:Z
    • gameMode

      private LevelInfo.GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      official c Lgu;c:Lahw$a;
      intermediary field_8674 Lnet/minecraft/class_2025;field_8674:Lnet/minecraft/class_1156$class_1157;
      named gameMode Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
    • viewDistance

      private int viewDistance
      Mappings:
      Namespace Name Mixin selector
      official d Lgu;d:I
      intermediary field_8675 Lnet/minecraft/class_2025;field_8675:I
      named viewDistance Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;viewDistance:I
    • difficulty

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      official e Lgu;e:Lqk;
      intermediary field_8676 Lnet/minecraft/class_2025;field_8676:Lnet/minecraft/class_2151;
      named difficulty Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;difficulty:Lnet/minecraft/world/Difficulty;
    • maxPlayers

      private int maxPlayers
      Mappings:
      Namespace Name Mixin selector
      official f Lgu;f:I
      intermediary field_8677 Lnet/minecraft/class_2025;field_8677:I
      named maxPlayers Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;maxPlayers:I
    • levelGeneratorType

      private LevelGeneratorType levelGeneratorType
      Mappings:
      Namespace Name Mixin selector
      official g Lgu;g:Lahy;
      intermediary field_8678 Lnet/minecraft/class_2025;field_8678:Lnet/minecraft/class_1160;
      named levelGeneratorType Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;levelGeneratorType:Lnet/minecraft/world/level/LevelGeneratorType;
    • reducedDebugInfo

      private boolean reducedDebugInfo
      Mappings:
      Namespace Name Mixin selector
      official h Lgu;h:Z
      intermediary field_11616 Lnet/minecraft/class_2025;field_11616:Z
      named reducedDebugInfo Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;reducedDebugInfo:Z
  • Constructor Details

    • GameJoinS2CPacket

      public GameJoinS2CPacket()
    • GameJoinS2CPacket

      public GameJoinS2CPacket(int id, LevelInfo.GameMode gameMode, boolean hardCore, int viewDistance, Difficulty difficulty, int maxPlayers, LevelGeneratorType levelGeneratorType, boolean reducedDebugInfo)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgu;<init>(ILahw$a;ZILqk;ILahy;Z)V
      intermediary <init> Lnet/minecraft/class_2025;<init>(ILnet/minecraft/class_1156$class_1157;ZILnet/minecraft/class_2151;ILnet/minecraft/class_1160;Z)V
      named <init> Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(ILnet/minecraft/world/level/LevelInfo$GameMode;ZILnet/minecraft/world/Difficulty;ILnet/minecraft/world/level/LevelGeneratorType;Z)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 Lfh;a(Leo;)V
      intermediary method_7535 Lnet/minecraft/class_700;method_7535(Lnet/minecraft/class_1967;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/util/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 Lfh;b(Leo;)V
      intermediary method_7539 Lnet/minecraft/class_700;method_7539(Lnet/minecraft/class_1967;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lgu;a(Lfk;)V
      intermediary method_7795 Lnet/minecraft/class_2025;method_7795(Lnet/minecraft/class_1993;)V
      named apply Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getEntityId

      @Environment(CLIENT) public int getEntityId()
      Mappings:
      Namespace Name Mixin selector
      official a Lgu;a()I
      intermediary method_7796 Lnet/minecraft/class_2025;method_7796()I
      named getEntityId Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getEntityId()I
    • isHardcore

      @Environment(CLIENT) public boolean isHardcore()
      Mappings:
      Namespace Name Mixin selector
      official b Lgu;b()Z
      intermediary method_7797 Lnet/minecraft/class_2025;method_7797()Z
      named isHardcore Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;isHardcore()Z
    • getGameMode

      @Environment(CLIENT) public LevelInfo.GameMode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      official c Lgu;c()Lahw$a;
      intermediary method_7798 Lnet/minecraft/class_2025;method_7798()Lnet/minecraft/class_1156$class_1157;
      named getGameMode Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
    • getChunkLoadDistance

      @Environment(CLIENT) public int getChunkLoadDistance()
      Mappings:
      Namespace Name Mixin selector
      official d Lgu;d()I
      intermediary method_7799 Lnet/minecraft/class_2025;method_7799()I
      named getChunkLoadDistance Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getChunkLoadDistance()I
    • getDifficulty

      @Environment(CLIENT) public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official e Lgu;e()Lqk;
      intermediary method_7800 Lnet/minecraft/class_2025;method_7800()Lnet/minecraft/class_2151;
      named getDifficulty Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getDifficulty()Lnet/minecraft/world/Difficulty;
    • getMaxPlayers

      @Environment(CLIENT) public int getMaxPlayers()
      Mappings:
      Namespace Name Mixin selector
      official f Lgu;f()I
      intermediary method_7801 Lnet/minecraft/class_2025;method_7801()I
      named getMaxPlayers Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getMaxPlayers()I
    • getGeneratorType

      @Environment(CLIENT) public LevelGeneratorType getGeneratorType()
      Mappings:
      Namespace Name Mixin selector
      official g Lgu;g()Lahy;
      intermediary method_7802 Lnet/minecraft/class_2025;method_7802()Lnet/minecraft/class_1160;
      named getGeneratorType Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;
    • hasReducedDebugInfo

      @Environment(CLIENT) public boolean hasReducedDebugInfo()
      Mappings:
      Namespace Name Mixin selector
      official h Lgu;h()Z
      intermediary method_10666 Lnet/minecraft/class_2025;method_10666()Z
      named hasReducedDebugInfo Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;hasReducedDebugInfo()Z