Package net.minecraft.server.network
Record Class ServerPlayerEntity.Respawn
java.lang.Object
java.lang.Record
net.minecraft.server.network.ServerPlayerEntity.Respawn
- Record Components:
respawnData-forced-
- Enclosing class:
ServerPlayerEntity
public static record ServerPlayerEntity.Respawn(WorldProperties.SpawnPoint respawnData, boolean forced)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/network/ServerPlayerEntity$Respawnintermediary net/minecraft/class_3222$class_10766official awy$anamed respawnDataintermediary comp_4913official bnamed forcedintermediary comp_3686official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerPlayerEntity.Respawn> private final booleanThe field for theforcedrecord component.private final WorldProperties.SpawnPointThe field for therespawnDatarecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.booleanposEquals(@Nullable ServerPlayerEntity.Respawn respawn) Returns the value of therespawnDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
respawnData
The field for therespawnDatarecord 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 aLawy$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 bLawy$a;b(Lawy$a;)Lami;
-
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 aLawy$a;a(Lawy$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 '=='. -
respawnData
Returns the value of therespawnDatarecord component.- Returns:
- the value of the
respawnDatarecord component
-
forced
public boolean forced()Returns the value of theforcedrecord component.- Returns:
- the value of the
forcedrecord component
-