mirror of https://github.com/FabricMC/yarn.git
Improve documentation for teleport targets (#2379)
This commit is contained in:
parent
9278744a19
commit
f32ff77fb1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue