Package net.minecraft.server.chase
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 zo$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 Summary
-
Constructor Summary
ConstructorDescriptionTeleportPos
(RegistryKey<World> dimension, Vec3d pos, Vec2f rot) Creates an instance of aTeleportPos
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimension
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.rot()
Returns the value of therot
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
dimension
Returns the value of thedimension
record component.- Returns:
- the value of the
dimension
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
rot
Returns the value of therot
record component.- Returns:
- the value of the
rot
record component
-