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 abg$aintermediary net/minecraft/class_6630$class_6631named net/minecraft/server/chase/ChaseClient$TeleportPosofficial aintermediary comp_138named dimensionofficial bintermediary comp_139named posofficial cintermediary comp_140named rot
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTeleportPos(RegistryKey<World> dimension, Vec3d pos, Vec2f rot) Creates an instance of aTeleportPosrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.rot()Returns the value of therotrecord component.final StringtoString()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 thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
rot
Returns the value of therotrecord component.- Returns:
- the value of the
rotrecord component
-