move isNumberEven to method

This commit is contained in:
Bella 2020-03-20 22:36:43 -04:00
parent 44e2ac8efc
commit 948a2cd73c
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,8 @@ import net.minecraft.network.play.client.CPacketChatMessage;
import java.util.Random;
import static me.zeroeightsix.kami.util.InfoCalculator.isNumberEven;
/**
* @author S-B99
* Updated by S-B99 on 12/03/20
@ -89,8 +91,6 @@ public class FancyChat extends Module {
return false;
}
private boolean isNumberEven(int i) { return (i & 1) == 0; }
private String leetSwitch(String i) {
switch (i) {
case "a":

View File

@ -85,4 +85,8 @@ public class InfoCalculator extends Module {
return Math.round(value * scale) / scale;
}
/* End of round */
/* Is Even */
public static boolean isNumberEven(int i) { return (i & 1) == 0; }
/* End of Is Even */
}