Record Class CommonPlayerSpawnInfo

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.CommonPlayerSpawnInfo
Record Components:
dimensionType -
dimension -
seed -
gameMode -
prevGameMode -
isDebug -
isFlat -
lastDeathLocation -
portalCooldown -

public record CommonPlayerSpawnInfo(RegistryKey<DimensionType> dimensionType, RegistryKey<World> dimension, long seed, GameMode gameMode, @Nullable GameMode prevGameMode, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown) extends Record
Mappings:
Namespace Name
official adg
intermediary net/minecraft/class_8589
named net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo
official a
intermediary comp_1553
named dimensionType
official b
intermediary comp_1554
named dimension
official c
intermediary comp_1555
named seed
official d
intermediary comp_1556
named gameMode
official e
intermediary comp_1557
named prevGameMode
official f
intermediary comp_1558
named isDebug
official g
intermediary comp_1559
named isFlat
official h
intermediary comp_1560
named lastDeathLocation
official i
intermediary comp_1561
named portalCooldown
  • Field Details

  • Constructor Details

    • CommonPlayerSpawnInfo

      public CommonPlayerSpawnInfo(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladg;<init>(Lui;)V
      intermediary <init> Lnet/minecraft/class_8589;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;<init>(Lnet/minecraft/network/PacketByteBuf;)V
    • CommonPlayerSpawnInfo

      public CommonPlayerSpawnInfo(RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, GameMode gameMode, @Nullable @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2)
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Lui;)V
      intermediary method_52274 Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;write(Lnet/minecraft/network/PacketByteBuf;)V
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • dimensionType

      public RegistryKey<DimensionType> dimensionType()
      Returns the value of the dimensionType record component.
      Returns:
      the value of the dimensionType record component
    • dimension

      public RegistryKey<World> dimension()
      Returns the value of the dimension record component.
      Returns:
      the value of the dimension record component
    • seed

      public long seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component
    • gameMode

      public GameMode gameMode()
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • prevGameMode

      @Nullable public @Nullable GameMode prevGameMode()
      Returns the value of the prevGameMode record component.
      Returns:
      the value of the prevGameMode record component
    • isDebug

      public boolean isDebug()
      Returns the value of the isDebug record component.
      Returns:
      the value of the isDebug record component
    • isFlat

      public boolean isFlat()
      Returns the value of the isFlat record component.
      Returns:
      the value of the isFlat record component
    • lastDeathLocation

      public Optional<GlobalPos> lastDeathLocation()
      Returns the value of the lastDeathLocation record component.
      Returns:
      the value of the lastDeathLocation record component
    • portalCooldown

      public int portalCooldown()
      Returns the value of the portalCooldown record component.
      Returns:
      the value of the portalCooldown record component