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 int
chunkRadius
private RegistryKey<World>
dimension
private DimensionType
dimensionType
private GameType
gameType
private boolean
hardcore
private boolean
isDebug
private boolean
isFlat
private java.util.Set<RegistryKey<World>>
levels
private int
maxPlayers
private int
playerId
private GameType
previousGameType
private boolean
reducedDebugInfo
private DynamicRegistries.Impl
registryHolder
private long
seed
private boolean
showDeathScreen
-
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 int
getChunkRadius()
RegistryKey<World>
getDimension()
DimensionType
getDimensionType()
GameType
getGameType()
int
getPlayerId()
GameType
getPreviousGameType()
long
getSeed()
void
handle(IClientPlayNetHandler p_148833_1_)
boolean
isDebug()
boolean
isFlat()
boolean
isHardcore()
boolean
isReducedDebugInfo()
java.util.Set<RegistryKey<World>>
levels()
void
read(PacketBuffer p_148837_1_)
DynamicRegistries
registryAccess()
boolean
shouldShowDeathScreen()
void
write(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:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in 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()
-
-