Record Class TeleportTarget

java.lang.Object
java.lang.Record
net.minecraft.world.TeleportTarget
Record Components:
newDimension -
pos -
velocity -
yaw -
pitch -
missingRespawnBlock -

public record TeleportTarget(ServerWorld newDimension, Vec3d pos, Vec3d velocity, float yaw, float pitch, boolean missingRespawnBlock) extends Record
Represents the position that an entity takes after being moved between worlds.
Mappings:
Namespace Name
named net/minecraft/world/TeleportTarget
intermediary net/minecraft/class_5454
official eph
named newDimension
intermediary comp_2820
official a
named pos
intermediary comp_2821
official b
named velocity
intermediary comp_2822
official c
named yaw
intermediary comp_2823
official d
named pitch
intermediary comp_2824
official e
named missingRespawnBlock
intermediary comp_2825
official f
  • Field Details

    • newDimension

      private final ServerWorld newDimension
      The field for the newDimension record component.
    • pos

      private final Vec3d pos
      The field for the pos record component.
    • velocity

      private final Vec3d velocity
      The field for the velocity record component.
    • yaw

      private final float yaw
      The field for the yaw record component.
    • pitch

      private final float pitch
      The field for the pitch record component.
    • missingRespawnBlock

      private final boolean missingRespawnBlock
      The field for the missingRespawnBlock record component.
  • Constructor Details

    • TeleportTarget

      public TeleportTarget(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/TeleportTarget;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;FF)V
      intermediary <init> Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;FF)V
      official <init> Leph;<init>(Laqm;Lewh;Lewh;FF)V
    • TeleportTarget

      public TeleportTarget(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/TeleportTarget;<init>(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary <init> Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;)V
      official <init> Leph;<init>(Laqm;)V
    • TeleportTarget

      public TeleportTarget(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool)
  • Method Details

    • missingSpawnBlock

      public static TeleportTarget missingSpawnBlock(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named missingSpawnBlock Lnet/minecraft/world/TeleportTarget;missingSpawnBlock(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/TeleportTarget;
      intermediary method_60635 Lnet/minecraft/class_5454;method_60635(Lnet/minecraft/class_3218;)Lnet/minecraft/class_5454;
      official a Leph;a(Laqm;)Leph;
    • toString

      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

      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

      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.
    • newDimension

      public ServerWorld newDimension()
      Returns the value of the newDimension record component.
      Returns:
      the value of the newDimension record component
    • pos

      public Vec3d pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • velocity

      public Vec3d velocity()
      Returns the value of the velocity record component.
      Returns:
      the value of the velocity record component
    • yaw

      public float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • pitch

      public float pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component
    • missingRespawnBlock

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