Boosts you when using riptide with a trident.
Settingsboostout-of-water
| 1 | /*
|
| 2 | * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
|
| 3 | * Copyright (c) Meteor Development.
|
| 4 | */
|
| 5 |
|
| 6 | package meteordevelopment.meteorclient.systems.modules.movement;
|
| 7 |
|
| 8 | import meteordevelopment.meteorclient.settings.BoolSetting;
|
| 9 | import meteordevelopment.meteorclient.settings.DoubleSetting;
|
| 10 | import meteordevelopment.meteorclient.settings.Setting;
|
| 11 | import meteordevelopment.meteorclient.settings.SettingGroup;
|
| 12 | import meteordevelopment.meteorclient.systems.modules.Categories;
|
| 13 | import meteordevelopment.meteorclient.systems.modules.Module;
|
| 14 |
|
| 15 | public class TridentBoost extends Module {
|
| 16 | private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
| 17 |
|
| 18 | private final Setting<Double> multiplier = sgGeneral.add(new DoubleSetting.Builder()
|
| 19 | .name("boost")
|
| 20 | .description("How much your velocity is multiplied by when using riptide.")
|
| 21 | .defaultValue(2)
|
| 22 | .min(0.1)
|
| 23 | .sliderMin(1)
|
| 24 | .build()
|
| 25 | );
|
| 26 |
|
| 27 | private final Setting<Boolean> allowOutOfWater = sgGeneral.add(new BoolSetting.Builder()
|
| 28 | .name("out-of-water")
|
| 29 | .description("Whether riptide should work out of water")
|
| 30 | .defaultValue(true)
|
| 31 | .build()
|
| 32 | );
|
| 33 |
|
| 34 | public TridentBoost() {
|
| 35 | super(Categories.Movement, "trident-boost", "Boosts you when using riptide with a trident.");
|
| 36 | }
|
| 37 |
|
| 38 | public double getMultiplier() {
|
| 39 | return isActive() ? multiplier.get() : 1;
|
| 40 | }
|
| 41 |
|
| 42 | public boolean allowOutOfWater() {
|
| 43 | return isActive() && allowOutOfWater.get();
|
| 44 | }
|
| 45 | }
|
| 46 |
|