Record Class TeleportTarget

java.lang.Object
java.lang.Record
net.minecraft.world.TeleportTarget
Record Components:
world -
position -
velocity -
yaw -
pitch -
missingRespawnBlock -
asPassenger -
relatives -
postTeleportTransition -

public record TeleportTarget(ServerWorld world, Vec3d position, Vec3d velocity, float yaw, float pitch, boolean missingRespawnBlock, boolean asPassenger, Set<PositionFlag> relatives, TeleportTarget.PostDimensionTransition postTeleportTransition) extends Record
Represents the position that an entity takes after being teleported.
Mappings:
Namespace Name
named net/minecraft/world/TeleportTarget
intermediary net/minecraft/class_5454
official euw
named world
intermediary comp_2820
official d
named position
intermediary comp_2821
official e
named velocity
intermediary comp_2822
official f
named yaw
intermediary comp_2823
official g
named pitch
intermediary comp_2824
official h
named missingRespawnBlock
intermediary comp_2825
official i
named asPassenger
intermediary comp_3285
official j
named relatives
intermediary comp_3183
official k
named postTeleportTransition
intermediary comp_2864
official l
  • Field Details

    • world

      private final ServerWorld world
      The field for the world record component.
    • position

      private final Vec3d position
      The field for the position 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.
    • asPassenger

      private final boolean asPassenger
      The field for the asPassenger record component.
    • relatives

      private final Set<PositionFlag> relatives
      The field for the relatives record component.
    • postTeleportTransition

      private final TeleportTarget.PostDimensionTransition postTeleportTransition
      The field for the postTeleportTransition record component.
    • NO_OP

      public static final TeleportTarget.PostDimensionTransition NO_OP
      Mappings:
      Namespace Name Mixin selector
      named NO_OP Lnet/minecraft/world/TeleportTarget;NO_OP:Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;
      intermediary field_52245 Lnet/minecraft/class_5454;field_52245:Lnet/minecraft/class_5454$class_9823;
      official a Leuw;a:Leuw$a;
    • SEND_TRAVEL_THROUGH_PORTAL_PACKET

      public static final TeleportTarget.PostDimensionTransition SEND_TRAVEL_THROUGH_PORTAL_PACKET
      Mappings:
      Namespace Name Mixin selector
      named SEND_TRAVEL_THROUGH_PORTAL_PACKET Lnet/minecraft/world/TeleportTarget;SEND_TRAVEL_THROUGH_PORTAL_PACKET:Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;
      intermediary field_52246 Lnet/minecraft/class_5454;field_52246:Lnet/minecraft/class_5454$class_9823;
      official b Leuw;b:Leuw$a;
    • ADD_PORTAL_CHUNK_TICKET

      public static final TeleportTarget.PostDimensionTransition ADD_PORTAL_CHUNK_TICKET
      Mappings:
      Namespace Name Mixin selector
      named ADD_PORTAL_CHUNK_TICKET Lnet/minecraft/world/TeleportTarget;ADD_PORTAL_CHUNK_TICKET:Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;
      intermediary field_52247 Lnet/minecraft/class_5454;field_52247:Lnet/minecraft/class_5454$class_9823;
      official c Leuw;c:Leuw$a;
  • Constructor Details

    • TeleportTarget

      public TeleportTarget(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, TeleportTarget.PostDimensionTransition postDimensionTransition)
      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;FFLnet/minecraft/world/TeleportTarget$PostDimensionTransition;)V
      intermediary <init> Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;FFLnet/minecraft/class_5454$class_9823;)V
      official <init> Leuw;<init>(Lash;Lfbx;Lfbx;FFLeuw$a;)V
    • TeleportTarget

      public TeleportTarget(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, Set<PositionFlag> flags, TeleportTarget.PostDimensionTransition postDimensionTransition)
      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;FFLjava/util/Set;Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;)V
      intermediary <init> Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;FFLjava/util/Set;Lnet/minecraft/class_5454$class_9823;)V
      official <init> Leuw;<init>(Lash;Lfbx;Lfbx;FFLjava/util/Set;Leuw$a;)V
    • TeleportTarget

      public TeleportTarget(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/TeleportTarget;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;)V
      intermediary <init> Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_5454$class_9823;)V
      official <init> Leuw;<init>(Lash;Lbvj;Leuw$a;)V
    • TeleportTarget

      public TeleportTarget(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool, boolean bool2, Set<PositionFlag> set, TeleportTarget.PostDimensionTransition postDimensionTransition)
  • Method Details

    • sendTravelThroughPortalPacket

      private static void sendTravelThroughPortalPacket(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named sendTravelThroughPortalPacket Lnet/minecraft/world/TeleportTarget;sendTravelThroughPortalPacket(Lnet/minecraft/entity/Entity;)V
      intermediary method_61024 Lnet/minecraft/class_5454;method_61024(Lnet/minecraft/class_1297;)V
      official a Leuw;a(Lbvj;)V
    • addPortalChunkTicket

      private static void addPortalChunkTicket(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named addPortalChunkTicket Lnet/minecraft/world/TeleportTarget;addPortalChunkTicket(Lnet/minecraft/entity/Entity;)V
      intermediary method_61025 Lnet/minecraft/class_5454;method_61025(Lnet/minecraft/class_1297;)V
      official b Leuw;b(Lbvj;)V
    • missingSpawnBlock

      public static TeleportTarget missingSpawnBlock(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition)
      Mappings:
      Namespace Name Mixin selector
      named missingSpawnBlock Lnet/minecraft/world/TeleportTarget;missingSpawnBlock(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;)Lnet/minecraft/world/TeleportTarget;
      intermediary method_60635 Lnet/minecraft/class_5454;method_60635(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_5454$class_9823;)Lnet/minecraft/class_5454;
      official a Leuw;a(Lash;Lbvj;Leuw$a;)Leuw;
    • getWorldSpawnPos

      private static Vec3d getWorldSpawnPos(ServerWorld world, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named getWorldSpawnPos Lnet/minecraft/world/TeleportTarget;getWorldSpawnPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_61023 Lnet/minecraft/class_5454;method_61023(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;
      official a Leuw;a(Lash;Lbvj;)Lfbx;
    • withRotation

      public TeleportTarget withRotation(float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      named withRotation Lnet/minecraft/world/TeleportTarget;withRotation(FF)Lnet/minecraft/world/TeleportTarget;
      intermediary method_61823 Lnet/minecraft/class_5454;method_61823(FF)Lnet/minecraft/class_5454;
      official a Leuw;a(FF)Leuw;
    • withPosition

      public TeleportTarget withPosition(Vec3d position)
      Mappings:
      Namespace Name Mixin selector
      named withPosition Lnet/minecraft/world/TeleportTarget;withPosition(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/world/TeleportTarget;
      intermediary method_64829 Lnet/minecraft/class_5454;method_64829(Lnet/minecraft/class_243;)Lnet/minecraft/class_5454;
      official a Leuw;a(Lfbx;)Leuw;
    • asPassenger

      public TeleportTarget asPassenger()
      Returns the value of the asPassenger record component.
      Returns:
      the value of the asPassenger record component
    • 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.
    • world

      public ServerWorld world()
      Returns the value of the world record component.
      Returns:
      the value of the world record component
    • position

      public Vec3d position()
      Returns the value of the position record component.
      Returns:
      the value of the position 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
    • relatives

      public Set<PositionFlag> relatives()
      Returns the value of the relatives record component.
      Returns:
      the value of the relatives record component
    • postTeleportTransition

      public TeleportTarget.PostDimensionTransition postTeleportTransition()
      Returns the value of the postTeleportTransition record component.
      Returns:
      the value of the postTeleportTransition record component