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$Respawn
intermediary net/minecraft/class_3222$class_10766
official asc$a
named dimension
intermediary comp_3683
official b
named pos
intermediary comp_3684
official c
named angle
intermediary comp_3685
official d
named forced
intermediary comp_3686
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
The field for theangle
record component.static final com.mojang.serialization.Codec
<ServerPlayerEntity.Respawn> private final RegistryKey
<World> The field for thedimension
record component.private final boolean
The field for theforced
record component.private final BlockPos
The field for thepos
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRespawn
(RegistryKey<World> registryKey, BlockPos blockPos, float float2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionfloat
angle()
Returns the value of theangle
record component.Returns the value of thedimension
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
forced()
Returns the value of theforced
record component.(package private) static RegistryKey
<World> final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.boolean
posEquals
(@Nullable ServerPlayerEntity.Respawn respawn) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
dimension
The field for thedimension
record component. -
pos
The field for thepos
record component. -
angle
private final float angleThe field for theangle
record component. -
forced
private final boolean forcedThe field for theforced
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56608
Lnet/minecraft/class_3222$class_10766;field_56608:Lcom/mojang/serialization/Codec;
official a
Lasc$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
getDimension
- Mappings:
Namespace Name Mixin selector named getDimension
Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;getDimension(Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;)Lnet/minecraft/registry/RegistryKey;
intermediary method_67567
Lnet/minecraft/class_3222$class_10766;method_67567(Lnet/minecraft/class_3222$class_10766;)Lnet/minecraft/class_5321;
official b
Lasc$a;b(Lasc$a;)Lalq;
-
posEquals
- Mappings:
Namespace Name Mixin selector named posEquals
Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;posEquals(Lnet/minecraft/server/network/ServerPlayerEntity$Respawn;)Z
intermediary method_67565
Lnet/minecraft/class_3222$class_10766;method_67565(Lnet/minecraft/class_3222$class_10766;)Z
official a
Lasc$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 thedimension
record component.- Returns:
- the value of the
dimension
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
angle
public float angle()Returns the value of theangle
record component.- Returns:
- the value of the
angle
record component
-
forced
public boolean forced()Returns the value of theforced
record component.- Returns:
- the value of the
forced
record component
-