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/TeleportTargetintermediary net/minecraft/class_5454official euanamed worldintermediary comp_2820official dnamed positionintermediary comp_2821official enamed velocityintermediary comp_2822official fnamed yawintermediary comp_2823official gnamed pitchintermediary comp_2824official hnamed missingRespawnBlockintermediary comp_2825official inamed asPassengerintermediary comp_3285official jnamed relativesintermediary comp_3183official knamed postTeleportTransitionintermediary comp_2864official l
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TeleportTarget.PostDimensionTransitionprivate final booleanThe field for theasPassengerrecord component.private final booleanThe field for themissingRespawnBlockrecord component.static final TeleportTarget.PostDimensionTransitionprivate final floatThe field for thepitchrecord component.private final Vec3dThe field for thepositionrecord component.private final TeleportTarget.PostDimensionTransitionThe field for thepostTeleportTransitionrecord component.private final Set<PositionFlag> The field for therelativesrecord component.static final TeleportTarget.PostDimensionTransitionprivate final Vec3dThe field for thevelocityrecord component.private final ServerWorldThe field for theworldrecord component.private final floatThe field for theyawrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTeleportTarget(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 voidaddPortalChunkTicket(Entity entity) Returns the value of theasPassengerrecord component.final booleanIndicates whether some other object is "equal to" this one.private static Vec3dgetWorldSpawnPos(ServerWorld world, Entity entity) final inthashCode()Returns a hash code value for this object.booleanReturns the value of themissingRespawnBlockrecord component.static TeleportTargetmissingSpawnBlock(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) floatpitch()Returns the value of thepitchrecord component.position()Returns the value of thepositionrecord component.Returns the value of thepostTeleportTransitionrecord component.Returns the value of therelativesrecord component.private static voidsendTravelThroughPortalPacket(Entity entity) final StringtoString()Returns a string representation of this record class.velocity()Returns the value of thevelocityrecord component.withPosition(Vec3d position) withRotation(float yaw, float pitch) world()Returns the value of theworldrecord component.floatyaw()Returns the value of theyawrecord component.
-
Field Details
-
world
The field for theworldrecord component. -
position
The field for thepositionrecord component. -
velocity
The field for thevelocityrecord component. -
yaw
private final float yawThe field for theyawrecord component. -
pitch
private final float pitchThe field for thepitchrecord component. -
missingRespawnBlock
private final boolean missingRespawnBlockThe field for themissingRespawnBlockrecord component. -
asPassenger
private final boolean asPassengerThe field for theasPassengerrecord component. -
relatives
The field for therelativesrecord component. -
postTeleportTransition
The field for thepostTeleportTransitionrecord component. -
NO_OP
- Mappings:
Namespace Name Mixin selector named NO_OPLnet/minecraft/world/TeleportTarget;NO_OP:Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;intermediary field_52245Lnet/minecraft/class_5454;field_52245:Lnet/minecraft/class_5454$class_9823;official aLeua;a:Leua$a;
-
SEND_TRAVEL_THROUGH_PORTAL_PACKET
- Mappings:
Namespace Name Mixin selector named SEND_TRAVEL_THROUGH_PORTAL_PACKETLnet/minecraft/world/TeleportTarget;SEND_TRAVEL_THROUGH_PORTAL_PACKET:Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;intermediary field_52246Lnet/minecraft/class_5454;field_52246:Lnet/minecraft/class_5454$class_9823;official bLeua;b:Leua$a;
-
ADD_PORTAL_CHUNK_TICKET
- Mappings:
Namespace Name Mixin selector named ADD_PORTAL_CHUNK_TICKETLnet/minecraft/world/TeleportTarget;ADD_PORTAL_CHUNK_TICKET:Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;intermediary field_52247Lnet/minecraft/class_5454;field_52247:Lnet/minecraft/class_5454$class_9823;official cLeua;c:Leua$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;)Vintermediary <init>Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;FFLnet/minecraft/class_5454$class_9823;)Vofficial <init>Leua;<init>(Lard;Lfbb;Lfbb;FFLeua$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;)Vintermediary <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;)Vofficial <init>Leua;<init>(Lard;Lfbb;Lfbb;FFLjava/util/Set;Leua$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;)Vintermediary <init>Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_5454$class_9823;)Vofficial <init>Leua;<init>(Lard;Lbum;Leua$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 sendTravelThroughPortalPacketLnet/minecraft/world/TeleportTarget;sendTravelThroughPortalPacket(Lnet/minecraft/entity/Entity;)Vintermediary method_61024Lnet/minecraft/class_5454;method_61024(Lnet/minecraft/class_1297;)Vofficial aLeua;a(Lbum;)V
-
addPortalChunkTicket
- Mappings:
Namespace Name Mixin selector named addPortalChunkTicketLnet/minecraft/world/TeleportTarget;addPortalChunkTicket(Lnet/minecraft/entity/Entity;)Vintermediary method_61025Lnet/minecraft/class_5454;method_61025(Lnet/minecraft/class_1297;)Vofficial bLeua;b(Lbum;)V
-
missingSpawnBlock
public static TeleportTarget missingSpawnBlock(ServerWorld world, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) - Mappings:
Namespace Name Mixin selector named missingSpawnBlockLnet/minecraft/world/TeleportTarget;missingSpawnBlock(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/world/TeleportTarget$PostDimensionTransition;)Lnet/minecraft/world/TeleportTarget;intermediary method_60635Lnet/minecraft/class_5454;method_60635(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_5454$class_9823;)Lnet/minecraft/class_5454;official aLeua;a(Lard;Lbum;Leua$a;)Leua;
-
getWorldSpawnPos
- Mappings:
Namespace Name Mixin selector named getWorldSpawnPosLnet/minecraft/world/TeleportTarget;getWorldSpawnPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;intermediary method_61023Lnet/minecraft/class_5454;method_61023(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;official aLeua;a(Lard;Lbum;)Lfbb;
-
withRotation
- Mappings:
Namespace Name Mixin selector named withRotationLnet/minecraft/world/TeleportTarget;withRotation(FF)Lnet/minecraft/world/TeleportTarget;intermediary method_61823Lnet/minecraft/class_5454;method_61823(FF)Lnet/minecraft/class_5454;official aLeua;a(FF)Leua;
-
withPosition
- Mappings:
Namespace Name Mixin selector named withPositionLnet/minecraft/world/TeleportTarget;withPosition(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/world/TeleportTarget;intermediary method_64829Lnet/minecraft/class_5454;method_64829(Lnet/minecraft/class_243;)Lnet/minecraft/class_5454;official aLeua;a(Lfbb;)Leua;
-
asPassenger
Returns the value of theasPassengerrecord component.- Returns:
- the value of the
asPassengerrecord 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 theworldrecord component.- Returns:
- the value of the
worldrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
velocity
Returns the value of thevelocityrecord component.- Returns:
- the value of the
velocityrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
missingRespawnBlock
public boolean missingRespawnBlock()Returns the value of themissingRespawnBlockrecord component.- Returns:
- the value of the
missingRespawnBlockrecord component
-
relatives
Returns the value of therelativesrecord component.- Returns:
- the value of the
relativesrecord component
-
postTeleportTransition
Returns the value of thepostTeleportTransitionrecord component.- Returns:
- the value of the
postTeleportTransitionrecord component
-