Package net.minecraft.server.chase
Record Class ChaseServer.PlayerPosition
java.lang.Object
java.lang.Record
net.minecraft.server.chase.ChaseServer.PlayerPosition
- Enclosing class:
- ChaseServer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedimensionNamerecord component.private final doubleThe field for thexrecord component.private final floatThe field for thexRotrecord component.private final doubleThe field for theyrecord component.private final floatThe field for theyRotrecord component.private final doubleThe field for thezrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerPosition(String dimensionName, double x, double y, double z, float yRot, float xRot) Creates an instance of aPlayerPositionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedimensionNamerecord component.final booleanIndicates whether some other object is "equal to" this one.(package private) Stringformat()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.floatxRot()Returns the value of thexRotrecord component.doubley()Returns the value of theyrecord component.floatyRot()Returns the value of theyRotrecord 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.
- 
yRotprivate final float yRotThe field for theyRotrecord component.
- 
xRotprivate final float xRotThe field for thexRotrecord component.
 
- 
- 
Constructor Details- 
PlayerPositionPlayerPosition(String dimensionName, double x, double y, double z, float yRot, float xRot) Creates an instance of aPlayerPositionrecord class.- Parameters:
- dimensionName- the value for the- dimensionNamerecord component
- x- the value for the- xrecord component
- y- the value for the- yrecord component
- z- the value for the- zrecord component
- yRot- the value for the- yRotrecord component
- xRot- the value for the- xRotrecord component
 
 
- 
- 
Method Details- 
formatString format()
- 
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
 
- 
yRotpublic float yRot()Returns the value of theyRotrecord component.- Returns:
- the value of the yRotrecord component
 
- 
xRotpublic float xRot()Returns the value of thexRotrecord component.- Returns:
- the value of the xRotrecord component
 
 
-