Improve documentation for teleport targets (#2379)

This commit is contained in:
haykam821 2021-05-05 07:57:42 -04:00 committed by GitHub
parent 9278744a19
commit f32ff77fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -262,6 +262,9 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD method_30229 resetNetherPortalCooldown ()V
METHOD method_30230 hasNetherPortalCooldown ()Z
METHOD method_30329 getTeleportTarget (Lnet/minecraft/class_3218;)Lnet/minecraft/class_5454;
COMMENT Determines a {@link TeleportTarget} for the entity
COMMENT based on its current and destination worlds, plus
COMMENT any portals that may be present.
ARG 1 destination
METHOD method_30330 getPortalRect (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Z)Ljava/util/Optional;
ARG 1 destWorld

View File

@ -1,4 +1,6 @@
CLASS net/minecraft/class_5454 net/minecraft/world/TeleportTarget
COMMENT Represents the position that an entity takes after being
COMMENT {@linkplain net.minecraft.entity.Entity#moveToWorld moved between worlds}.
FIELD field_25879 position Lnet/minecraft/class_243;
FIELD field_25880 velocity Lnet/minecraft/class_243;
FIELD field_25881 yaw F

View File

@ -17,6 +17,9 @@ CLASS net/minecraft/class_2424 net/minecraft/world/dimension/AreaHelper
METHOD method_10362 wasAlreadyValid ()Z
METHOD method_10363 createPortal ()V
METHOD method_30484 getNetherTeleportTarget (Lnet/minecraft/class_3218;Lnet/minecraft/class_5459$class_5460;Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_243;Lnet/minecraft/class_4048;Lnet/minecraft/class_243;FF)Lnet/minecraft/class_5454;
COMMENT Determines a {@link TeleportTarget} based on a specific portal.
COMMENT
COMMENT <p>The offset, velocity, and angle are modified based on the portal's axis.
ARG 0 destination
ARG 1 portalRect
ARG 2 portalAxis