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 Details Link icon

    • dimension Link icon

      private final RegistryKey<World> dimension
      The field for the dimension record component.
    • pos Link icon

      private final BlockPos pos
      The field for the pos record component.
    • angle Link icon

      private final float angle
      The field for the angle record component.
    • forced Link icon

      private final boolean forced
      The field for the forced record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<ServerPlayerEntity.Respawn> 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 Link icon

  • Method Details Link icon

    • getDimension Link icon

      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 Link icon

      public boolean posEquals(@Nullable @Nullable ServerPlayerEntity.Respawn respawn)
      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 Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • dimension Link icon

      public RegistryKey<World> dimension()
      Returns the value of the dimension record component.
      Returns:
      the value of the dimension record component
    • pos Link icon

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • angle Link icon

      public float angle()
      Returns the value of the angle record component.
      Returns:
      the value of the angle record component
    • forced Link icon

      public boolean forced()
      Returns the value of the forced record component.
      Returns:
      the value of the forced record component