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(RegistryEntry<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
named net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo
intermediary net/minecraft/class_8589
official agc
named dimensionType
intermediary comp_1553
official a
named dimension
intermediary comp_1554
official b
named seed
intermediary comp_1555
official c
named gameMode
intermediary comp_1556
official d
named prevGameMode
intermediary comp_1557
official e
named isDebug
intermediary comp_1558
official f
named isFlat
intermediary comp_1559
official g
named lastDeathLocation
intermediary comp_1560
official h
named portalCooldown
intermediary comp_1561
official i
  • Field Details

  • Constructor Details

    • CommonPlayerSpawnInfo

      public CommonPlayerSpawnInfo(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary <init> Lnet/minecraft/class_8589;<init>(Lnet/minecraft/class_9129;)V
      official <init> Lagc;<init>(Lwj;)V
    • CommonPlayerSpawnInfo

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

    • write

      public void write(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;write(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_52274 Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_9129;)V
      official a Lagc;a(Lwj;)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 RegistryEntry<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