chore: add @reason javadoc to @Overwrite

This commit is contained in:
Johannes Frohnmeyer 2023-09-22 20:35:43 +02:00
parent e83d98fdec
commit 8409042838
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 8 additions and 0 deletions

View File

@ -12,11 +12,19 @@ public abstract class MathHelperMixin {
@Shadow public static int floor(double value) { return 0; }
@Shadow public static double nextDouble(Random random, double min, double max) { return 0; }
/**
* @author JFronny
* @reason Reduce precision
*/
@Overwrite
public static long lfloor(double d) {
return (long) (Math.floor(d / 4) * 4);
}
/**
* @author JFronny
* @reason Introduce variation
*/
@Overwrite
public static double absMax(double d, double e) {
if (d > 0.0D) {