Package net.minecraft.server.chase
Record Class ChaseServer.TeleportPos
java.lang.Object
java.lang.Record
net.minecraft.server.chase.ChaseServer.TeleportPos
- Record Components:
dimensionName-x-y-z-yaw-pitch-
- Enclosing class:
ChaseServer
private static record ChaseServer.TeleportPos(String dimensionName, double x, double y, double z, float yaw, float pitch)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/chase/ChaseServer$TeleportPosintermediary net/minecraft/class_6632$class_6668official alw$anamed dimensionNameintermediary comp_160official anamed xintermediary comp_161official bnamed yintermediary comp_162official cnamed zintermediary comp_163official dnamed yawintermediary comp_164official enamed pitchintermediary comp_165official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedimensionNamerecord component.private final floatThe field for thepitchrecord component.private final doubleThe field for thexrecord component.private final doubleThe field for theyrecord component.private final floatThe field for theyawrecord component.private final doubleThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTeleportPos(String string, double double2, double double3, double double4, float float2, float float3) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionNamerecord component.final booleanIndicates whether some other object is "equal to" this one.(package private) Stringfinal inthashCode()Returns a hash code value for this object.floatpitch()Returns the value of thepitchrecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.floatyaw()Returns the value of theyawrecord component.doublez()Returns the value of thezrecord component.
-
Field Details
-
dimensionName
The field for thedimensionNamerecord component. -
x
private final double xThe field for thexrecord component. -
y
private final double yThe field for theyrecord component. -
z
private final double zThe field for thezrecord component. -
yaw
private final float yawThe field for theyawrecord component. -
pitch
private final float pitchThe field for thepitchrecord component.
-
-
Constructor Details
-
TeleportPos
TeleportPos(String string, double double2, double double3, double double4, float float2, float float3)
-
-
Method Details
-
getTeleportCommand
String getTeleportCommand()- Mappings:
Namespace Name Mixin selector named getTeleportCommandLnet/minecraft/server/chase/ChaseServer$TeleportPos;getTeleportCommand()Ljava/lang/String;intermediary method_38960Lnet/minecraft/class_6632$class_6668;method_38960()Ljava/lang/String;official gLalw$a;g()Ljava/lang/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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dimensionName
Returns the value of thedimensionNamerecord component.- Returns:
- the value of the
dimensionNamerecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-