Package net.minecraft

Record Class class_8589

java.lang.Object
java.lang.Record
net.minecraft.class_8589
Record Components:
dimensionType -
dimension -
seed -
gameType -
previousGameType -
isDebug -
isFlat -
lastDeathLocation -
portalCooldown -

public record class_8589(RegistryKey<DimensionType> dimensionType, RegistryKey<World> dimension, long seed, GameMode gameType, @Nullable GameMode previousGameType, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation, int portalCooldown) extends Record
Mappings:
Namespace Name
official aas
intermediary net/minecraft/class_8589
named net/minecraft/class_8589
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 gameType
official e
intermediary comp_1557
named previousGameType
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

  • Method Details

    • method_52274

      public void method_52274(PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official a Laas;a(Lsh;)V
      intermediary method_52274 Lnet/minecraft/class_8589;method_52274(Lnet/minecraft/class_2540;)V
      named method_52274 Lnet/minecraft/class_8589;method_52274(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
    • gameType

      public GameMode gameType()
      Returns the value of the gameType record component.
      Returns:
      the value of the gameType record component
    • previousGameType

      @Nullable public @Nullable GameMode previousGameType()
      Returns the value of the previousGameType record component.
      Returns:
      the value of the previousGameType 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