Class SJoinGamePacket
java.lang.Object
net.minecraft.network.play.server.SJoinGamePacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate RegistryKey<World>private DimensionTypeprivate GameTypeprivate booleanprivate booleanprivate booleanprivate Set<RegistryKey<World>>private intprivate intprivate GameTypeprivate booleanprivate DynamicRegistries.Implprivate longprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionSJoinGamePacket(int p_i242082_1_, GameType p_i242082_2_, GameType p_i242082_3_, long p_i242082_4_, boolean p_i242082_6_, Set<RegistryKey<World>> p_i242082_7_, DynamicRegistries.Impl p_i242082_8_, DimensionType p_i242082_9_, RegistryKey<World> p_i242082_10_, int p_i242082_11_, int p_i242082_12_, boolean p_i242082_13_, boolean p_i242082_14_, boolean p_i242082_15_, boolean p_i242082_16_) -
Method Summary
Modifier and TypeMethodDescriptionintintlonggetSeed()voidhandle(IClientPlayNetHandler p_148833_1_) booleanisDebug()booleanisFlat()booleanbooleanlevels()voidread(PacketBuffer p_148837_1_) booleanvoidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.IPacket
isSkippable
-
Field Details
-
playerId
private int playerId -
seed
private long seed -
hardcore
private boolean hardcore -
gameType
-
previousGameType
-
levels
-
registryHolder
-
dimensionType
-
dimension
-
maxPlayers
private int maxPlayers -
chunkRadius
private int chunkRadius -
reducedDebugInfo
private boolean reducedDebugInfo -
showDeathScreen
private boolean showDeathScreen -
isDebug
private boolean isDebug -
isFlat
private boolean isFlat
-
-
Constructor Details
-
SJoinGamePacket
public SJoinGamePacket() -
SJoinGamePacket
public SJoinGamePacket(int p_i242082_1_, GameType p_i242082_2_, GameType p_i242082_3_, long p_i242082_4_, boolean p_i242082_6_, Set<RegistryKey<World>> p_i242082_7_, DynamicRegistries.Impl p_i242082_8_, DimensionType p_i242082_9_, RegistryKey<World> p_i242082_10_, int p_i242082_11_, int p_i242082_12_, boolean p_i242082_13_, boolean p_i242082_14_, boolean p_i242082_15_, boolean p_i242082_16_)
-
-
Method Details
-
read
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
handle
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
getPlayerId
public int getPlayerId() -
getSeed
public long getSeed() -
isHardcore
public boolean isHardcore() -
getGameType
-
getPreviousGameType
-
levels
-
registryAccess
-
getDimensionType
-
getDimension
-
getChunkRadius
public int getChunkRadius() -
isReducedDebugInfo
public boolean isReducedDebugInfo() -
shouldShowDeathScreen
public boolean shouldShowDeathScreen() -
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat()
-