Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed FlowableFluid getVelocity method name to getFlowDirectionVect… #3284

Open
wants to merge 8 commits into
base: 22w42a
Choose a base branch
from
9 changes: 8 additions & 1 deletion mappings/net/minecraft/fluid/Fluid.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ CLASS net/minecraft/class_3611 net/minecraft/fluid/Fluid
ARG 1 fluid
METHOD method_15781 setDefaultState (Lnet/minecraft/class_3610;)V
ARG 1 state
METHOD method_15782 getVelocity (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)Lnet/minecraft/class_243;
METHOD method_15782 getFlowDirectionVector (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)Lnet/minecraft/class_243;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FluidState#getVelocity should also be renamed for consistency.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I have changed it there so that every method that overrides or implements will get the Javadocs. 5076644

COMMENT {@return a 3D vector indicating the direction the given fluid state will flow towards}
COMMENT
COMMENT <p>Example: a return of {@code (0, 0, -1)} means the given {@link FluidState} will flow towards negative-Z in the game which is towards the North.
COMMENT Likewise {@code (0, 0, 1)} means the given {@link FluidState} will flow towards positive-Z in the game which is South.
ARG 1 world
COMMENT the world that will be queried for the fluid states around the fluid state whose direction of flow is desired
ARG 2 pos
COMMENT the {@link BlockPos} containing the position of the fluid state whose direction of flow is desired
ARG 3 state
COMMENT the {@link FluidState} whose direction of flow is desired to be known
METHOD method_15783 getStateManager ()Lnet/minecraft/class_2689;
METHOD method_15784 getBlastResistance ()F
METHOD method_15785 getDefaultState ()Lnet/minecraft/class_3610;
Expand Down
2 changes: 1 addition & 1 deletion mappings/net/minecraft/fluid/FluidState.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CLASS net/minecraft/class_3610 net/minecraft/fluid/FluidState
ARG 1 world
ARG 2 pos
ARG 3 random
METHOD method_15758 getVelocity (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;
METHOD method_15758 getFlowDirectionVector (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;
ARG 1 world
ARG 2 pos
METHOD method_15759 getBlockState ()Lnet/minecraft/class_2680;
Expand Down