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 gt
intermediary net/minecraft/class_1502
named net/minecraft/network/packet/s2c/play/GameJoinS2CPacket
  • Field Details

    • playerEntityId

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

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

      private LevelInfo.GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      official c Lgt;c:Ladp$a;
      intermediary field_6210 Lnet/minecraft/class_1502;field_6210:Lnet/minecraft/class_102$class_103;
      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 Lgt;d:I
      intermediary field_6211 Lnet/minecraft/class_1502;field_6211:I
      named viewDistance Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;viewDistance:I
    • difficulty

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      official e Lgt;e:Loj;
      intermediary field_6212 Lnet/minecraft/class_1502;field_6212:Lnet/minecraft/class_1721;
      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 Lgt;f:I
      intermediary field_6213 Lnet/minecraft/class_1502;field_6213:I
      named maxPlayers Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;maxPlayers:I
    • levelGeneratorType

      private LevelGeneratorType levelGeneratorType
      Mappings:
      Namespace Name Mixin selector
      official g Lgt;g:Ladr;
      intermediary field_6214 Lnet/minecraft/class_1502;field_6214:Lnet/minecraft/class_105;
      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 Lgt;h:Z
      intermediary field_6215 Lnet/minecraft/class_1502;field_6215: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> Lgt;<init>(ILadp$a;ZILoj;ILadr;Z)V
      intermediary <init> Lnet/minecraft/class_1502;<init>(ILnet/minecraft/class_102$class_103;ZILnet/minecraft/class_1721;ILnet/minecraft/class_105;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 Lff;a(Lem;)V
      intermediary method_5238 Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)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 Lff;b(Lem;)V
      intermediary method_5240 Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)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 Lgt;a(Lfj;)V
      intermediary method_5511 Lnet/minecraft/class_1502;method_5511(Lnet/minecraft/class_1462;)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 Lgt;a()I
      intermediary method_5510 Lnet/minecraft/class_1502;method_5510()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 Lgt;b()Z
      intermediary method_5512 Lnet/minecraft/class_1502;method_5512()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 Lgt;c()Ladp$a;
      intermediary method_5513 Lnet/minecraft/class_1502;method_5513()Lnet/minecraft/class_102$class_103;
      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 Lgt;d()I
      intermediary method_5514 Lnet/minecraft/class_1502;method_5514()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 Lgt;e()Loj;
      intermediary method_5515 Lnet/minecraft/class_1502;method_5515()Lnet/minecraft/class_1721;
      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 Lgt;f()I
      intermediary method_5516 Lnet/minecraft/class_1502;method_5516()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 Lgt;g()Ladr;
      intermediary method_5517 Lnet/minecraft/class_1502;method_5517()Lnet/minecraft/class_105;
      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 Lgt;h()Z
      intermediary method_5518 Lnet/minecraft/class_1502;method_5518()Z
      named hasReducedDebugInfo Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;hasReducedDebugInfo()Z