Package net.minecraft.server.network
Record Class ServerPlayerEntity.Respawn
java.lang.Object
java.lang.Record
net.minecraft.server.network.ServerPlayerEntity.Respawn
- Record Components:
dimension-pos-angle-forced-
- Enclosing class:
ServerPlayerEntity
public static record ServerPlayerEntity.Respawn(RegistryKey<World> dimension, BlockPos pos, float angle, boolean forced)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/network/ServerPlayerEntity$Respawnintermediary net/minecraft/class_3222$class_10766official asc$anamed dimensionintermediary comp_3683official bnamed posintermediary comp_3684official cnamed angleintermediary comp_3685official dnamed forcedintermediary comp_3686official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theanglerecord component.static final com.mojang.serialization.Codec<ServerPlayerEntity.Respawn> private final RegistryKey<World> The field for thedimensionrecord component.private final booleanThe field for theforcedrecord component.private final BlockPosThe field for theposrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRespawn(RegistryKey<World> registryKey, BlockPos blockPos, float float2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionfloatangle()Returns the value of theanglerecord component.Returns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanforced()Returns the value of theforcedrecord component.(package private) static RegistryKey<World> final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.booleanposEquals(@Nullable ServerPlayerEntity.Respawn respawn) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimension
The field for thedimensionrecord component. -
pos
The field for theposrecord component. -
angle
private final float angleThe field for theanglerecord component. -
forced
private final boolean forcedThe field for theforcedrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/network/ServerPlayerEntity$Respawn;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56608Lnet/minecraft/class_3222$class_10766;field_56608:Lcom/mojang/serialization/Codec;official aLasc$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Respawn
-
-
Method Details
-
getDimension
- Mappings:
Namespace Name Mixin selector named getDimensionLnet/minecraft/server/network/ServerPlayerEntity$Respawn;getDimension(Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;)Lnet/minecraft/registry/RegistryKey;intermediary method_67567Lnet/minecraft/class_3222$class_10766;method_67567(Lnet/minecraft/class_3222$class_10766;)Lnet/minecraft/class_5321;official bLasc$a;b(Lasc$a;)Lalq;
-
posEquals
- Mappings:
Namespace Name Mixin selector named posEqualsLnet/minecraft/server/network/ServerPlayerEntity$Respawn;posEquals(Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;)Zintermediary method_67565Lnet/minecraft/class_3222$class_10766;method_67565(Lnet/minecraft/class_3222$class_10766;)Zofficial aLasc$a;a(Lasc$a;)Z
-
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 '=='. -
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
-
angle
public float angle()Returns the value of theanglerecord component.- Returns:
- the value of the
anglerecord component
-
forced
public boolean forced()Returns the value of theforcedrecord component.- Returns:
- the value of the
forcedrecord component
-