Class SJoinGamePacket
java.lang.Object
net.minecraft.network.play.server.SJoinGamePacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private RegistryKey<World>
private DimensionType
private GameType
private boolean
private boolean
private boolean
private Set<RegistryKey<World>>
private int
private int
private GameType
private boolean
private DynamicRegistries.Impl
private long
private boolean
-
Constructor Summary
ConstructorDescriptionSJoinGamePacket
(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 TypeMethodDescriptionint
int
long
getSeed()
void
handle
(IClientPlayNetHandler p_148833_1_) boolean
isDebug()
boolean
isFlat()
boolean
boolean
levels()
void
read
(PacketBuffer p_148837_1_) boolean
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 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:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in 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()
-