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 gtintermediary net/minecraft/class_1502named net/minecraft/network/packet/s2c/play/GameJoinS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private Difficultydifficultyprivate LevelInfo.GameModegameModeprivate booleanhardcoreprivate LevelGeneratorTypelevelGeneratorTypeprivate intmaxPlayersprivate intplayerEntityIdprivate booleanreducedDebugInfoprivate intviewDistance -
Constructor Summary
Constructors Constructor Description GameJoinS2CPacket()GameJoinS2CPacket(int id, LevelInfo.GameMode gameMode, boolean hardCore, int viewDistance, Difficulty difficulty, int maxPlayers, LevelGeneratorType levelGeneratorType, boolean reducedDebugInfo) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetChunkLoadDistance()DifficultygetDifficulty()intgetEntityId()LevelInfo.GameModegetGameMode()LevelGeneratorTypegetGeneratorType()intgetMaxPlayers()booleanhasReducedDebugInfo()booleanisHardcore()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
playerEntityId
private int playerEntityId- Mappings:
Namespace Name Mixin selector official aLgt;a:Iintermediary field_6208Lnet/minecraft/class_1502;field_6208:Inamed playerEntityIdLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;playerEntityId:I
-
hardcore
private boolean hardcore- Mappings:
Namespace Name Mixin selector official bLgt;b:Zintermediary field_6209Lnet/minecraft/class_1502;field_6209:Znamed hardcoreLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;hardcore:Z
-
gameMode
- Mappings:
Namespace Name Mixin selector official cLgt;c:Ladp$a;intermediary field_6210Lnet/minecraft/class_1502;field_6210:Lnet/minecraft/class_102$class_103;named gameModeLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;gameMode:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
viewDistance
private int viewDistance- Mappings:
Namespace Name Mixin selector official dLgt;d:Iintermediary field_6211Lnet/minecraft/class_1502;field_6211:Inamed viewDistanceLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;viewDistance:I
-
difficulty
- Mappings:
Namespace Name Mixin selector official eLgt;e:Loj;intermediary field_6212Lnet/minecraft/class_1502;field_6212:Lnet/minecraft/class_1721;named difficultyLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;difficulty:Lnet/minecraft/world/Difficulty;
-
maxPlayers
private int maxPlayers- Mappings:
Namespace Name Mixin selector official fLgt;f:Iintermediary field_6213Lnet/minecraft/class_1502;field_6213:Inamed maxPlayersLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;maxPlayers:I
-
levelGeneratorType
- Mappings:
Namespace Name Mixin selector official gLgt;g:Ladr;intermediary field_6214Lnet/minecraft/class_1502;field_6214:Lnet/minecraft/class_105;named levelGeneratorTypeLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;levelGeneratorType:Lnet/minecraft/world/level/LevelGeneratorType;
-
reducedDebugInfo
private boolean reducedDebugInfo- Mappings:
Namespace Name Mixin selector official hLgt;h:Zintermediary field_6215Lnet/minecraft/class_1502;field_6215:Znamed reducedDebugInfoLnet/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)Vintermediary <init>Lnet/minecraft/class_1502;<init>(ILnet/minecraft/class_102$class_103;ZILnet/minecraft/class_1721;ILnet/minecraft/class_105;Z)Vnamed <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
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLff;a(Lem;)Vintermediary method_5238Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/util/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLff;b(Lem;)Vintermediary method_5240Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLgt;a(Lfj;)Vintermediary method_5511Lnet/minecraft/class_1502;method_5511(Lnet/minecraft/class_1462;)Vnamed applyLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getEntityId
- Mappings:
Namespace Name Mixin selector official aLgt;a()Iintermediary method_5510Lnet/minecraft/class_1502;method_5510()Inamed getEntityIdLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getEntityId()I
-
isHardcore
- Mappings:
Namespace Name Mixin selector official bLgt;b()Zintermediary method_5512Lnet/minecraft/class_1502;method_5512()Znamed isHardcoreLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;isHardcore()Z
-
getGameMode
- Mappings:
Namespace Name Mixin selector official cLgt;c()Ladp$a;intermediary method_5513Lnet/minecraft/class_1502;method_5513()Lnet/minecraft/class_102$class_103;named getGameModeLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getGameMode()Lnet/minecraft/world/level/LevelInfo$GameMode;
-
getChunkLoadDistance
- Mappings:
Namespace Name Mixin selector official dLgt;d()Iintermediary method_5514Lnet/minecraft/class_1502;method_5514()Inamed getChunkLoadDistanceLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getChunkLoadDistance()I
-
getDifficulty
- Mappings:
Namespace Name Mixin selector official eLgt;e()Loj;intermediary method_5515Lnet/minecraft/class_1502;method_5515()Lnet/minecraft/class_1721;named getDifficultyLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getDifficulty()Lnet/minecraft/world/Difficulty;
-
getMaxPlayers
- Mappings:
Namespace Name Mixin selector official fLgt;f()Iintermediary method_5516Lnet/minecraft/class_1502;method_5516()Inamed getMaxPlayersLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getMaxPlayers()I
-
getGeneratorType
- Mappings:
Namespace Name Mixin selector official gLgt;g()Ladr;intermediary method_5517Lnet/minecraft/class_1502;method_5517()Lnet/minecraft/class_105;named getGeneratorTypeLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;getGeneratorType()Lnet/minecraft/world/level/LevelGeneratorType;
-
hasReducedDebugInfo
- Mappings:
Namespace Name Mixin selector official hLgt;h()Zintermediary method_5518Lnet/minecraft/class_1502;method_5518()Znamed hasReducedDebugInfoLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;hasReducedDebugInfo()Z
-