Record Class GameJoinS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.GameJoinS2CPacket
- Record Components:
playerEntityId-hardcore-dimensionIds-maxPlayers-viewDistance-simulationDistance-reducedDebugInfo-showDeathScreen-commonPlayerSpawnInfo-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record GameJoinS2CPacket(int playerEntityId, boolean hardcore, Set<RegistryKey<World>> dimensionIds, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, CommonPlayerSpawnInfo commonPlayerSpawnInfo)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official yeintermediary net/minecraft/class_2678named net/minecraft/network/packet/s2c/play/GameJoinS2CPacketofficial aintermediary comp_88named playerEntityIdofficial bintermediary comp_89named hardcoreofficial cintermediary comp_92named dimensionIdsofficial dintermediary comp_97named maxPlayersofficial eintermediary comp_98named viewDistanceofficial fintermediary comp_169named simulationDistanceofficial gintermediary comp_99named reducedDebugInfoofficial hintermediary comp_100named showDeathScreenofficial iintermediary comp_1727named commonPlayerSpawnInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommonPlayerSpawnInfoThe field for thecommonPlayerSpawnInforecord component.private final Set<RegistryKey<World>>The field for thedimensionIdsrecord component.private final booleanThe field for thehardcorerecord component.private final intThe field for themaxPlayersrecord component.private final intThe field for theplayerEntityIdrecord component.private final booleanThe field for thereducedDebugInforecord component.private final booleanThe field for theshowDeathScreenrecord component.private final intThe field for thesimulationDistancerecord component.private final intThe field for theviewDistancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGameJoinS2CPacket(int playerEntityId, boolean bool, Set<RegistryKey<World>> set, int int2, int int3, int int4, boolean bool2, boolean bool3, CommonPlayerSpawnInfo commonPlayerSpawnInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thecommonPlayerSpawnInforecord component.Returns the value of thedimensionIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhardcore()Returns the value of thehardcorerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPlayersrecord component.intReturns the value of theplayerEntityIdrecord component.booleanReturns the value of thereducedDebugInforecord component.booleanReturns the value of theshowDeathScreenrecord component.intReturns the value of thesimulationDistancerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theviewDistancerecord component.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
playerEntityId
private final int playerEntityIdThe field for theplayerEntityIdrecord component. -
hardcore
private final boolean hardcoreThe field for thehardcorerecord component. -
dimensionIds
The field for thedimensionIdsrecord component. -
maxPlayers
private final int maxPlayersThe field for themaxPlayersrecord component. -
viewDistance
private final int viewDistanceThe field for theviewDistancerecord component. -
simulationDistance
private final int simulationDistanceThe field for thesimulationDistancerecord component. -
reducedDebugInfo
private final boolean reducedDebugInfoThe field for thereducedDebugInforecord component. -
showDeathScreen
private final boolean showDeathScreenThe field for theshowDeathScreenrecord component. -
commonPlayerSpawnInfo
The field for thecommonPlayerSpawnInforecord component.
-
-
Constructor Details
-
GameJoinS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lye;<init>(Lsh;)Vintermediary <init>Lnet/minecraft/class_2678;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
GameJoinS2CPacket
public GameJoinS2CPacket(int playerEntityId, boolean bool, Set<RegistryKey<World>> set, int int2, int int3, int int4, boolean bool2, boolean bool3, CommonPlayerSpawnInfo commonPlayerSpawnInfo) - Mappings:
Namespace Name Mixin selector official <init>Lye;<init>(IZLjava/util/Set;IIIZZLaas;)Vintermediary <init>Lnet/minecraft/class_2678;<init>(IZLjava/util/Set;IIIZZLnet/minecraft/class_8589;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;<init>(IZLjava/util/Set;IIIZZLnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLuw;a(Lsh;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLye;a(Lwo;)Vintermediary method_11567Lnet/minecraft/class_2678;method_11567(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/GameJoinS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
playerEntityId
public int playerEntityId()Returns the value of theplayerEntityIdrecord component.- Returns:
- the value of the
playerEntityIdrecord component
-
hardcore
public boolean hardcore()Returns the value of thehardcorerecord component.- Returns:
- the value of the
hardcorerecord component
-
dimensionIds
Returns the value of thedimensionIdsrecord component.- Returns:
- the value of the
dimensionIdsrecord component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-
viewDistance
public int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the
viewDistancerecord component
-
simulationDistance
public int simulationDistance()Returns the value of thesimulationDistancerecord component.- Returns:
- the value of the
simulationDistancerecord component
-
reducedDebugInfo
public boolean reducedDebugInfo()Returns the value of thereducedDebugInforecord component.- Returns:
- the value of the
reducedDebugInforecord component
-
showDeathScreen
public boolean showDeathScreen()Returns the value of theshowDeathScreenrecord component.- Returns:
- the value of the
showDeathScreenrecord component
-
commonPlayerSpawnInfo
Returns the value of thecommonPlayerSpawnInforecord component.- Returns:
- the value of the
commonPlayerSpawnInforecord component
-