Fix flow distance (#3894)

* Fix flow distance

* Add JavaDocs

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Kevin 2024-06-27 17:41:40 +08:00 committed by GitHub
parent 49907e4183
commit 0c55b2f6ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,8 @@ CLASS net/minecraft/class_3609 net/minecraft/fluid/FlowableFluid
ARG 4 state
ARG 5 fromPos
ARG 6 fromState
METHOD method_15733 getFlowSpeed (Lnet/minecraft/class_4538;)I
METHOD method_15733 getMaxFlowDistance (Lnet/minecraft/class_4538;)I
COMMENT {@return the maximum horizontal distance to check for holes the fluid can flow down into}
ARG 1 world
METHOD method_15736 canFlowDownTo (Lnet/minecraft/class_1922;Lnet/minecraft/class_3611;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
ARG 1 world
@ -58,7 +59,8 @@ CLASS net/minecraft/class_3609 net/minecraft/fluid/FlowableFluid
ARG 2 pos
METHOD method_15741 getBlockStateLevel (Lnet/minecraft/class_3610;)I
ARG 0 state
METHOD method_15742 getFlowSpeedBetween (Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;ILnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;Lit/unimi/dsi/fastutil/shorts/Short2BooleanMap;)I
METHOD method_15742 getMinFlowDownDistance (Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;ILnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;Lit/unimi/dsi/fastutil/shorts/Short2BooleanMap;)I
COMMENT Finds the distance to the closest hole the fluid can flow down into starting with the direction specified.
ARG 1 world
ARG 2 pos
ARG 4 direction