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/TeleportTargetintermediary net/minecraft/class_5454official eqcnamed worldintermediary comp_2820official dnamed posintermediary comp_2821official enamed velocityintermediary comp_2822official fnamed yawintermediary comp_2823official gnamed pitchintermediary comp_2824official hnamed missingRespawnBlockintermediary comp_2825official inamed postDimensionTransitionintermediary comp_2864official j
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TeleportTarget.PostDimensionTransitionprivate final booleanThe field for themissingRespawnBlockrecord component.static final TeleportTarget.PostDimensionTransitionprivate final floatThe field for thepitchrecord component.private final Vec3dThe field for theposrecord component.private final TeleportTarget.PostDimensionTransitionThe field for thepostDimensionTransitionrecord 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, 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) 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.pos()Returns the value of theposrecord component.Returns the value of thepostDimensionTransitionrecord component.private static voidsendTravelThroughPortalPacket(Entity entity) final StringtoString()Returns a string representation of this record class.velocity()Returns the value of thevelocityrecord component.world()Returns the value of theworldrecord component.floatyaw()Returns the value of theyawrecord component.
-
Field Details
-
world
The field for theworldrecord component. -
pos
The field for theposrecord 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. -
postDimensionTransition
The field for thepostDimensionTransitionrecord 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 aLeqc;a:Leqc$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 bLeqc;b:Leqc$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 cLeqc;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;)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>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;)Vintermediary <init>Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_5454$class_9823;)Vofficial <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 sendTravelThroughPortalPacketLnet/minecraft/world/TeleportTarget;sendTravelThroughPortalPacket(Lnet/minecraft/entity/Entity;)Vintermediary method_61024Lnet/minecraft/class_5454;method_61024(Lnet/minecraft/class_1297;)Vofficial aLeqc;a(Lbsr;)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 bLeqc;b(Lbsr;)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 aLeqc;a(Laqu;Lbsr;Leqc$a;)Leqc;
-
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 aLeqc;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 theworldrecord component.- Returns:
- the value of the
worldrecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord 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
-
postDimensionTransition
Returns the value of thepostDimensionTransitionrecord component.- Returns:
- the value of the
postDimensionTransitionrecord component
-