|
10 | 10 |
|
11 | 11 | import fi.dy.masa.malilib.config.*; |
12 | 12 | import fi.dy.masa.malilib.config.options.*; |
| 13 | +import fi.dy.masa.malilib.hotkeys.IHotkey; |
13 | 14 | import fi.dy.masa.malilib.util.ActiveMode; |
14 | 15 | import fi.dy.masa.malilib.util.FileUtils; |
15 | 16 | import fi.dy.masa.malilib.util.JsonUtils; |
@@ -70,6 +71,8 @@ public static class Generic |
70 | 71 | public static final ConfigDouble FLY_SPEED_PRESET_2 = new ConfigDouble ("flySpeedPreset2", 0.064, 0, 4).apply(GENERIC_KEY); |
71 | 72 | public static final ConfigDouble FLY_SPEED_PRESET_3 = new ConfigDouble ("flySpeedPreset3", 0.128, 0, 4).apply(GENERIC_KEY); |
72 | 73 | public static final ConfigDouble FLY_SPEED_PRESET_4 = new ConfigDouble ("flySpeedPreset4", 0.32, 0, 4).apply(GENERIC_KEY); |
| 74 | + public static final ConfigDouble FLY_SPEED_INCREMENT_1 = new ConfigDouble ("flySpeedIncrement1", 0.128, -4, 4).apply(GENERIC_KEY); |
| 75 | + public static final ConfigDouble FLY_SPEED_INCREMENT_2 = new ConfigDouble ("flySpeedIncrement2", -0.128, -4, 4).apply(GENERIC_KEY); |
73 | 76 | public static final ConfigBoolean FREE_CAMERA_PLAYER_INPUTS = new ConfigBoolean ("freeCameraPlayerInputs", false).apply(GENERIC_KEY); |
74 | 77 | public static final ConfigBoolean FREE_CAMERA_PLAYER_MOVEMENT = new ConfigBoolean ("freeCameraPlayerMovement", false).apply(GENERIC_KEY); |
75 | 78 | public static final ConfigDouble GAMMA_OVERRIDE_VALUE = new ConfigDouble ("gammaOverrideValue", 16, 0, 32).apply(GENERIC_KEY); |
@@ -131,9 +134,10 @@ public static class Generic |
131 | 134 | public static final ConfigInteger STRUCTURE_BLOCK_MAX_SIZE = new ConfigInteger ("structureBlockMaxSize", 128, 1, 256).apply(GENERIC_KEY); |
132 | 135 | public static final ConfigString TOOL_SWITCHABLE_SLOTS = new ConfigString ("toolSwitchableSlots", "1-9").apply(GENERIC_KEY); |
133 | 136 | public static final ConfigString TOOL_SWITCH_IGNORED_SLOTS = new ConfigString ("toolSwitchIgnoredSlots", "").apply(GENERIC_KEY); |
134 | | - public static final ConfigBoolean TOOL_SWAP_BETTER_ENCHANTS = new ConfigBoolean ("toolSwapBetterEnchants", false).apply(GENERIC_KEY); |
135 | | - public static final ConfigBoolean TOOL_SWAP_SILK_TOUCH_FIRST = new ConfigBoolean ("toolSwapSilkTouchFirst", true).apply(GENERIC_KEY); |
136 | | - public static final ConfigBoolean WEAPON_SWAP_BETTER_ENCHANTS = new ConfigBoolean ("weaponSwapBetterEnchants", false).apply(GENERIC_KEY); |
| 137 | + public static final ConfigBooleanHotkeyed TOOL_SWAP_BETTER_ENCHANTS = new ConfigBooleanHotkeyed ("toolSwapBetterEnchants", false, "").apply(GENERIC_KEY); |
| 138 | + public static final ConfigBooleanHotkeyed TOOL_SWAP_SILK_TOUCH_FIRST = new ConfigBooleanHotkeyed ("toolSwapSilkTouchFirst", true, "").apply(GENERIC_KEY); |
| 139 | + public static final ConfigBooleanHotkeyed TOOL_SWAP_SILK_TOUCH_ORES = new ConfigBooleanHotkeyed ("toolSwapSilkTouchOres", false, "").apply(GENERIC_KEY); |
| 140 | + public static final ConfigBooleanHotkeyed WEAPON_SWAP_BETTER_ENCHANTS = new ConfigBooleanHotkeyed ("weaponSwapBetterEnchants", false, "").apply(GENERIC_KEY); |
137 | 141 | public static final ConfigBoolean ZOOM_ADJUST_MOUSE_SENSITIVITY = new ConfigBoolean ("zoomAdjustMouseSensitivity", true).apply(GENERIC_KEY); |
138 | 142 | public static final ConfigDouble ZOOM_FOV = new ConfigDouble ("zoomFov", 30, 0.01, 359.99).apply(GENERIC_KEY); |
139 | 143 | public static final ConfigBoolean ZOOM_RESET_FOV_ON_ACTIVATE = new ConfigBoolean ("zoomResetFovOnActivate", true).apply(GENERIC_KEY); |
@@ -203,6 +207,8 @@ public static class Generic |
203 | 207 | FLY_SPEED_PRESET_2, |
204 | 208 | FLY_SPEED_PRESET_3, |
205 | 209 | FLY_SPEED_PRESET_4, |
| 210 | + FLY_SPEED_INCREMENT_1, |
| 211 | + FLY_SPEED_INCREMENT_2, |
206 | 212 | GAMMA_OVERRIDE_VALUE, |
207 | 213 | HAND_RESTOCK_PRE_THRESHOLD, |
208 | 214 | HOTBAR_SLOT_CYCLE_MAX, |
@@ -239,10 +245,18 @@ public static class Generic |
239 | 245 | TOOL_SWITCH_IGNORED_SLOTS, |
240 | 246 | TOOL_SWAP_BETTER_ENCHANTS, |
241 | 247 | TOOL_SWAP_SILK_TOUCH_FIRST, |
| 248 | + TOOL_SWAP_SILK_TOUCH_ORES, |
242 | 249 | WEAPON_SWAP_BETTER_ENCHANTS, |
243 | 250 | ZOOM_FOV, |
244 | 251 | ZOOM_RESET_FOV_ON_ACTIVATE |
245 | 252 | ); |
| 253 | + |
| 254 | + public static final ImmutableList<IHotkey> HOTKEYS = ImmutableList.of( |
| 255 | + TOOL_SWAP_BETTER_ENCHANTS, |
| 256 | + TOOL_SWAP_SILK_TOUCH_FIRST, |
| 257 | + TOOL_SWAP_SILK_TOUCH_ORES, |
| 258 | + WEAPON_SWAP_BETTER_ENCHANTS |
| 259 | + ); |
246 | 260 | } |
247 | 261 |
|
248 | 262 | public static class Fixes |
|
0 commit comments