Record Class TeleportTarget

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

public record TeleportTarget(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, boolean missingRespawnBlock, TeleportTarget.PostDimensionTransition postDimensionTransition) 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 eqc
named world
intermediary comp_2820
official d
named pos
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 postDimensionTransition
intermediary comp_2864
official j
  • Field Details

    • world

      private final ServerWorld world
      The field for the world 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.
    • postDimensionTransition

      private final TeleportTarget.PostDimensionTransition postDimensionTransition
      The field for the postDimensionTransition 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 Leqc;a:Leqc$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 Leqc;b:Leqc$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 Leqc;c:Leqc$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> Leqc;<init>(Laqu;Lexc;Lexc;FFLeqc$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> Leqc;<init>(Laqu;Lbsr;Leqc$a;)V
    • TeleportTarget

      public TeleportTarget(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool, 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 Leqc;a(Lbsr;)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 Leqc;b(Lbsr;)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 Leqc;a(Laqu;Lbsr;Leqc$a;)Leqc;
    • 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 Leqc;a(Laqu;Lbsr;)Lexc;
    • 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
    • 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
    • postDimensionTransition

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