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$TeleportPos- intermediary - net/minecraft/class_6632$class_6668- official - amb$a- named - dimensionName- intermediary - comp_160- official - a- named - x- intermediary - comp_161- official - b- named - y- intermediary - comp_162- official - c- named - z- intermediary - comp_163- official - d- named - yaw- intermediary - comp_164- official - e- named - pitch- intermediary - comp_165- official - f
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionTeleportPos(String string, double double2, double double3, double double4, float float2, float float3) 
- 
Method SummaryModifier 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- 
dimensionNameThe field for thedimensionNamerecord component.
- 
xprivate final double xThe field for thexrecord component.
- 
yprivate final double yThe field for theyrecord component.
- 
zprivate final double zThe field for thezrecord component.
- 
yawprivate final float yawThe field for theyawrecord component.
- 
pitchprivate final float pitchThe field for thepitchrecord component.
 
- 
- 
Constructor Details- 
TeleportPosTeleportPos(String string, double double2, double double3, double double4, float float2, float float3) 
 
- 
- 
Method Details- 
getTeleportCommandString getTeleportCommand()- Mappings:
- Namespace - Name - Mixin selector - named - getTeleportCommand- Lnet/minecraft/server/chase/ChaseServer$TeleportPos;getTeleportCommand()Ljava/lang/String;- intermediary - method_38960- Lnet/minecraft/class_6632$class_6668;method_38960()Ljava/lang/String;- official - g- Lamb$a;g()Ljava/lang/String;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
dimensionNameReturns the value of thedimensionNamerecord component.- Returns:
- the value of the dimensionNamerecord component
 
- 
xpublic double x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
ypublic double y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
zpublic double z()Returns the value of thezrecord component.- Returns:
- the value of the zrecord component
 
- 
yawpublic float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the yawrecord component
 
- 
pitchpublic float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the pitchrecord component
 
 
-