Package net.minecraft.server.network
Record Class ServerPlayerEntity.SavePos
java.lang.Object
java.lang.Record
net.minecraft.server.network.ServerPlayerEntity.SavePos
- Record Components:
dimension-position-rotation-
- Enclosing class:
ServerPlayerEntity
public static record ServerPlayerEntity.SavePos(Optional<RegistryKey<World>> dimension, Optional<Vec3d> position, Optional<Vec2f> rotation)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/network/ServerPlayerEntity$SavePosintermediary net/minecraft/class_3222$class_11543official awy$cnamed dimensionintermediary comp_4408official cnamed positionintermediary comp_4409official dnamed rotationintermediary comp_4410official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ServerPlayerEntity.SavePos> private final Optional<RegistryKey<World>> The field for thedimensionrecord component.static final ServerPlayerEntity.SavePosThe field for thepositionrecord component.The field for therotationrecord component. -
Constructor Summary
Constructors -
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.position()Returns the value of thepositionrecord component.rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimension
The field for thedimensionrecord component. -
position
The field for thepositionrecord component. -
rotation
The field for therotationrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/network/ServerPlayerEntity$SavePos;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61094Lnet/minecraft/class_3222$class_11543;field_61094:Lcom/mojang/serialization/MapCodec;official aLawy$c;a:Lcom/mojang/serialization/MapCodec;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/server/network/ServerPlayerEntity$SavePos;EMPTY:Lnet/minecraft/server/network/ServerPlayerEntity$SavePos;intermediary field_61095Lnet/minecraft/class_3222$class_11543;field_61095:Lnet/minecraft/class_3222$class_11543;official bLawy$c;b:Lawy$c;
-
-
Constructor Details
-
SavePos
-
-
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
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-