@@ -138,6 +138,11 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
138138 // Paper start - Teleport API
139139 /**
140140 * Teleports this entity to the given location.
141+ * <p>
142+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
143+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
144+ * with passengers across dimensions is not supported and will cause this to return false. This behavior may
145+ * change in future versions.
141146 *
142147 * @param location New location to teleport this entity to
143148 * @param teleportFlags Flags to be used in this teleportation
@@ -149,6 +154,11 @@ default boolean teleport(@NotNull Location location, @NotNull io.papermc.paper.e
149154
150155 /**
151156 * Teleports this entity to the given location.
157+ * <p>
158+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
159+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
160+ * with passengers across dimensions is not supported and will cause this to return false. This behavior may
161+ * change in future versions.
152162 *
153163 * @param location New location to teleport this entity to
154164 * @param cause The cause of this teleportation
@@ -179,17 +189,25 @@ default void lookAt(@NotNull io.papermc.paper.math.Position position, @NotNull L
179189 // Paper end - Teleport API
180190
181191 /**
182- * Teleports this entity to the given location. If this entity is riding a
183- * vehicle, it will be dismounted prior to teleportation.
192+ * Teleports this entity to the given location.
193+ * <p>
194+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
195+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
196+ * with passengers across dimensions is not supported and will cause this to return false. This behavior may
197+ * change in future versions.
184198 *
185199 * @param location New location to teleport this entity to
186200 * @return <code>true</code> if the teleport was successful
187201 */
188202 public boolean teleport (@ NotNull Location location );
189203
190204 /**
191- * Teleports this entity to the given location. If this entity is riding a
192- * vehicle, it will be dismounted prior to teleportation.
205+ * Teleports this entity to the given location.
206+ * <p>
207+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
208+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
209+ * with passengers across dimensions is not supported and will cause this to return false. This behavior may
210+ * change in future versions.
193211 *
194212 * @param location New location to teleport this entity to
195213 * @param cause The cause of this teleportation
@@ -198,17 +216,25 @@ default void lookAt(@NotNull io.papermc.paper.math.Position position, @NotNull L
198216 public boolean teleport (@ NotNull Location location , @ NotNull TeleportCause cause );
199217
200218 /**
201- * Teleports this entity to the target Entity. If this entity is riding a
202- * vehicle, it will be dismounted prior to teleportation.
219+ * Teleports this entity to the target Entity.
220+ * <p>
221+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
222+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
223+ * with passengers across dimensions is not supported and will cause this to return false. This behavior may
224+ * change in future versions.
203225 *
204226 * @param destination Entity to teleport this entity to
205227 * @return <code>true</code> if the teleport was successful
206228 */
207229 public boolean teleport (@ NotNull Entity destination );
208230
209231 /**
210- * Teleports this entity to the target Entity. If this entity is riding a
211- * vehicle, it will be dismounted prior to teleportation.
232+ * Teleports this entity to the target Entity.
233+ * <p>
234+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
235+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
236+ * with passengers across dimensions is not supported and will cause this to return false. This behavior may
237+ * change in future versions.
212238 *
213239 * @param destination Entity to teleport this entity to
214240 * @param cause The cause of this teleportation
@@ -219,6 +245,12 @@ default void lookAt(@NotNull io.papermc.paper.math.Position position, @NotNull L
219245 // Paper start
220246 /**
221247 * Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.
248+ * <p>
249+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
250+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
251+ * with passengers across dimensions is not supported and will cause the future to return false. This behavior may
252+ * change in future versions.
253+ *
222254 * @param loc Location to teleport to
223255 * @return A future that will be completed with the result of the teleport
224256 */
@@ -228,6 +260,12 @@ default void lookAt(@NotNull io.papermc.paper.math.Position position, @NotNull L
228260
229261 /**
230262 * Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.
263+ * <p>
264+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
265+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
266+ * with passengers across dimensions is not supported and will cause the future to return false. This behavior may
267+ * change in future versions.
268+ *
231269 * @param loc Location to teleport to
232270 * @param cause Reason for teleport
233271 * @return A future that will be completed with the result of the teleport
@@ -241,9 +279,16 @@ final class Holder {
241279
242280 /**
243281 * Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.
282+ * <p>
283+ * Note: This uses default in game behavior for teleportation, especially in regard to handling
284+ * passengers and vehicles across dimensions. It should be noted at this moment, teleporting a {@link Player}
285+ * with passengers across dimensions is not supported and will cause the future to return false. This behavior may
286+ * change in future versions.
287+ *
244288 * @param loc Location to teleport to
245289 * @param cause Reason for teleport
246290 * @param teleportFlags Flags to be used in this teleportation
291+ *
247292 * @return A future that will be completed with the result of the teleport
248293 */
249294 java .util .concurrent .@ NotNull CompletableFuture <Boolean > teleportAsync (@ NotNull Location loc , @ NotNull TeleportCause cause , @ NotNull io .papermc .paper .entity .TeleportFlag @ NotNull ... teleportFlags );
0 commit comments