Record Class TeleportTarget

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

public record TeleportTarget(ServerWorld newLevel, 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 epw
named newLevel
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

    • newLevel

      private final ServerWorld newLevel
      The field for the newLevel 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> Lepw;<init>(Laqt;Leww;Leww;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> Lepw;<init>(Laqt;)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 Lepw;a(Laqt;)Lepw;
    • 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.
    • newLevel

      public ServerWorld newLevel()
      Returns the value of the newLevel record component.
      Returns:
      the value of the newLevel 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