Merge branch 'seppukudevelopment:master' into master
This commit is contained in:
commit
2c38344393
|
@ -117,4 +117,28 @@ public final class StringUtil {
|
|||
}
|
||||
return costs[s2.length()];
|
||||
}
|
||||
|
||||
/**
|
||||
* Integer to Roman Numeral
|
||||
* credits: Adilli Adil
|
||||
* @param num
|
||||
* @return
|
||||
*/
|
||||
public static String intToRoman(int num) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int times = 0;
|
||||
String[] romans = new String[] { "I", "IV", "V", "IX", "X", "XL", "L",
|
||||
"XC", "C", "CD", "D", "CM", "M" };
|
||||
int[] ints = new int[] { 1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500,
|
||||
900, 1000 };
|
||||
for (int i = ints.length - 1; i >= 0; i--) {
|
||||
times = num / ints[i];
|
||||
num %= ints[i];
|
||||
while (times > 0) {
|
||||
sb.append(romans[i]);
|
||||
times--;
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,22 +29,21 @@ import team.stiff.pomelo.impl.annotated.handler.annotation.Listener;
|
|||
*/
|
||||
public final class SpeedMineModule extends Module {
|
||||
|
||||
public final Value<Mode> mode = new Value<Mode>("Mode", new String[]{"Mode", "M"}, "The speed-mine mode to use.", Mode.PACKET);
|
||||
public final Value<Mode> mode = new Value<Mode>("Mode", new String[]{"Mode", "M"}, "The speed-mine mode to use.", Mode.DAMAGE);
|
||||
|
||||
private enum Mode {
|
||||
PACKET, DAMAGE, INSTANT, SEQUENTIAL
|
||||
}
|
||||
|
||||
public BlockPos seqPos;
|
||||
public static BlockPos autoPos;
|
||||
|
||||
public BlockPos seqPos;
|
||||
public EnumFacing seqDir;
|
||||
final Minecraft mc = Minecraft.getMinecraft();
|
||||
public final Minecraft mc = Minecraft.getMinecraft();
|
||||
|
||||
public final Value<Boolean> reset = new Value<Boolean>("Reset", new String[]{"Res"}, "Stops current block destroy damage from resetting if enabled.", true);
|
||||
public final Value<Boolean> doubleBreak = new Value<Boolean>("DoubleBreak", new String[]{"DoubleBreak", "Double", "DB"}, "Mining a block will also mine the block above it, if enabled.", false);
|
||||
public final Value<Boolean> auto = new Value<Boolean>("Auto", new String[]{"Res"}, "Auto sets the current mode to allow for multimining", true);
|
||||
|
||||
|
||||
public final Value<Boolean> auto = new Value<Boolean>("Auto", new String[]{"Res"}, "When enabled, allows for multi-mining blocks.", false);
|
||||
|
||||
public SpeedMineModule() {
|
||||
super("SpeedMine", new String[]{"FastMine"}, "Allows you to break blocks faster", "NONE", -1, ModuleType.WORLD);
|
||||
|
|
Loading…
Reference in New Issue