Record Class ChaseClient.TeleportPos

java.lang.Object
java.lang.Record
net.minecraft.server.chase.ChaseClient.TeleportPos
Record Components:
dimension -
pos -
rot -
Enclosing class:
ChaseClient

static record ChaseClient.TeleportPos(RegistryKey<World> dimension, Vec3d pos, Vec2f rot) extends Record
Mappings:
Namespace Name
official add$a
intermediary net/minecraft/class_6630$class_6631
named net/minecraft/server/chase/ChaseClient$TeleportPos
official a
intermediary comp_138
named dimension
official b
intermediary comp_139
named pos
official c
intermediary comp_140
named rot
  • Field Details

    • dimension

      private final RegistryKey<World> dimension
      The field for the dimension record component.
    • pos

      private final Vec3d pos
      The field for the pos record component.
    • rot

      private final Vec2f rot
      The field for the rot record component.
  • Constructor Details

    • TeleportPos

      TeleportPos(RegistryKey<World> dimension, Vec3d pos, Vec2f rot)
      Creates an instance of a TeleportPos record class.
      Parameters:
      dimension - the value for the dimension record component
      pos - the value for the pos record component
      rot - the value for the rot record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • dimension

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

      public Vec3d pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • rot

      public Vec2f rot()
      Returns the value of the rot record component.
      Returns:
      the value of the rot record component