Package net.minecraft.world
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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TeleportTarget.PostDimensionTransition
private final boolean
The field for theasPassenger
record component.private final boolean
The field for themissingRespawnBlock
record component.static final TeleportTarget.PostDimensionTransition
private final float
The field for thepitch
record component.private final Vec3d
The field for theposition
record component.private final TeleportTarget.PostDimensionTransition
The field for thepostTeleportTransition
record component.private final Set
<PositionFlag> The field for therelatives
record component.static final TeleportTarget.PostDimensionTransition
private final Vec3d
The field for thevelocity
record component.private final ServerWorld
The field for theworld
record component.private final float
The field for theyaw
record component. -
Constructor Summary
ConstructorDescriptionTeleportTarget
(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool, boolean bool2, Set<PositionFlag> set, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, Set<PositionFlag> flags, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, TeleportTarget.PostDimensionTransition postDimensionTransition) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addPortalChunkTicket
(Entity entity) Returns the value of theasPassenger
record component.final boolean
Indicates whether some other object is "equal to" this one.private static Vec3d
getWorldSpawnPos
(ServerWorld world, Entity entity) final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themissingRespawnBlock
record component.static TeleportTarget
missingSpawnBlock
(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) float
pitch()
Returns the value of thepitch
record component.position()
Returns the value of theposition
record component.Returns the value of thepostTeleportTransition
record component.Returns the value of therelatives
record component.private static void
sendTravelThroughPortalPacket
(Entity entity) final String
toString()
Returns a string representation of this record class.velocity()
Returns the value of thevelocity
record component.withPosition
(Vec3d position) withRotation
(float yaw, float pitch) world()
Returns the value of theworld
record component.float
yaw()
Returns the value of theyaw
record component.
-
Field Details
-
world
The field for theworld
record component. -
position
The field for theposition
record component. -
velocity
The field for thevelocity
record component. -
yaw
private final float yawThe field for theyaw
record component. -
pitch
private final float pitchThe field for thepitch
record component. -
missingRespawnBlock
private final boolean missingRespawnBlockThe field for themissingRespawnBlock
record component. -
asPassenger
private final boolean asPassengerThe field for theasPassenger
record component. -
relatives
The field for therelatives
record component. -
postTeleportTransition
The field for thepostTeleportTransition
record component. -
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Returns the value of theasPassenger
record component.- Returns:
- the value of the
asPassenger
record component
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
velocity
Returns the value of thevelocity
record component.- Returns:
- the value of the
velocity
record component
-
yaw
public float yaw()Returns the value of theyaw
record component.- Returns:
- the value of the
yaw
record component
-
pitch
public float pitch()Returns the value of thepitch
record component.- Returns:
- the value of the
pitch
record component
-
missingRespawnBlock
public boolean missingRespawnBlock()Returns the value of themissingRespawnBlock
record component.- Returns:
- the value of the
missingRespawnBlock
record component
-
relatives
Returns the value of therelatives
record component.- Returns:
- the value of the
relatives
record component
-
postTeleportTransition
Returns the value of thepostTeleportTransition
record component.- Returns:
- the value of the
postTeleportTransition
record component
-