Class SJoinGamePacket
- java.lang.Object
-
- net.minecraft.network.play.server.SJoinGamePacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SJoinGamePacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private intchunkRadiusprivate RegistryKey<World>dimensionprivate DimensionTypedimensionTypeprivate GameTypegameTypeprivate booleanhardcoreprivate booleanisDebugprivate booleanisFlatprivate java.util.Set<RegistryKey<World>>levelsprivate intmaxPlayersprivate intplayerIdprivate GameTypepreviousGameTypeprivate booleanreducedDebugInfoprivate DynamicRegistries.ImplregistryHolderprivate longseedprivate booleanshowDeathScreen
-
Constructor Summary
Constructors Constructor Description SJoinGamePacket()SJoinGamePacket(int p_i242082_1_, GameType p_i242082_2_, GameType p_i242082_3_, long p_i242082_4_, boolean p_i242082_6_, java.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChunkRadius()RegistryKey<World>getDimension()DimensionTypegetDimensionType()GameTypegetGameType()intgetPlayerId()GameTypegetPreviousGameType()longgetSeed()voidhandle(IClientPlayNetHandler p_148833_1_)booleanisDebug()booleanisFlat()booleanisHardcore()booleanisReducedDebugInfo()java.util.Set<RegistryKey<World>>levels()voidread(PacketBuffer p_148837_1_)DynamicRegistriesregistryAccess()booleanshouldShowDeathScreen()voidwrite(PacketBuffer p_148840_1_)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
-
-
-
Field Detail
-
playerId
private int playerId
-
seed
private long seed
-
hardcore
private boolean hardcore
-
gameType
private GameType gameType
-
previousGameType
private GameType previousGameType
-
levels
private java.util.Set<RegistryKey<World>> levels
-
registryHolder
private DynamicRegistries.Impl registryHolder
-
dimensionType
private DimensionType dimensionType
-
dimension
private RegistryKey<World> 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 Detail
-
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_, java.util.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 Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
getPlayerId
public int getPlayerId()
-
getSeed
public long getSeed()
-
isHardcore
public boolean isHardcore()
-
getGameType
public GameType getGameType()
-
getPreviousGameType
public GameType getPreviousGameType()
-
levels
public java.util.Set<RegistryKey<World>> levels()
-
registryAccess
public DynamicRegistries registryAccess()
-
getDimensionType
public DimensionType getDimensionType()
-
getDimension
public RegistryKey<World> getDimension()
-
getChunkRadius
public int getChunkRadius()
-
isReducedDebugInfo
public boolean isReducedDebugInfo()
-
shouldShowDeathScreen
public boolean shouldShowDeathScreen()
-
isDebug
public boolean isDebug()
-
isFlat
public boolean isFlat()
-
-