Package net.minecraft.world
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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TeleportTarget.PostDimensionTransition
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 thepos
record component.private final TeleportTarget.PostDimensionTransition
The field for thepostDimensionTransition
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, 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) 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.pos()
Returns the value of thepos
record component.Returns the value of thepostDimensionTransition
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.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. -
pos
The field for thepos
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. -
postDimensionTransition
The field for thepostDimensionTransition
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
Leqc;a:Leqc$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
Leqc;b:Leqc$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
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
- 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
- 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
- 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
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
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
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
-
postDimensionTransition
Returns the value of thepostDimensionTransition
record component.- Returns:
- the value of the
postDimensionTransition
record component
-