|
| 1 | +package dev.dfonline.codeclient.config.preset; |
| 2 | + |
| 3 | +import dev.dfonline.codeclient.config.Config; |
| 4 | + |
| 5 | +import java.util.function.Consumer; |
| 6 | + |
| 7 | +public enum ConfigPreset { |
| 8 | + |
| 9 | + MINIMAL(config -> { |
| 10 | + config.NoClipEnabled = false; |
| 11 | + config.PlaceOnAir = false; |
| 12 | + config.CodeClientAPI = true; |
| 13 | + config.CustomBlockBreaking = false; |
| 14 | + config.CustomBlockInteractions = false; |
| 15 | + config.CustomTagInteraction = false; |
| 16 | + config.AutoFly = false; |
| 17 | + config.CodeLayerInteractionMode = Config.LayerInteractionMode.OFF; |
| 18 | + config.RecentChestInsert = false; |
| 19 | + config.ChestPeeker = false; |
| 20 | + config.ReportBrokenBlock = false; |
| 21 | + config.ScopeSwitcher = false; |
| 22 | + config.TeleportUp = false; |
| 23 | + config.TeleportDown = false; |
| 24 | + config.SignPeeker = false; |
| 25 | + config.CustomCodeChest = Config.CustomChestMenuType.OFF; |
| 26 | + config.AdvancedMiddleClick = false; |
| 27 | + config.DevForBuild = false; |
| 28 | + config.ChatEditsVars = true; |
| 29 | + config.InsertOverlay = false; |
| 30 | + config.ParameterGhosts = false; |
| 31 | + config.ActionViewer = true; |
| 32 | + config.RecentValues = 0; |
| 33 | + config.ValueDetails = true; |
| 34 | + config.PhaseToggle = false; |
| 35 | + config.DestroyItemResetMode = Config.DestroyItemReset.OFF; |
| 36 | + config.ShowVariableScopeBelowName = true; |
| 37 | + config.CPUDisplay = true; |
| 38 | + config.CPUDisplayCorner = Config.CPUDisplayCornerOption.TOP_LEFT; |
| 39 | + config.HideScopeChangeMessages = true; |
| 40 | + config.HighlighterEnabled = true; |
| 41 | + config.HighlightExpressions = true; |
| 42 | + config.HighlightMiniMessage = true; |
| 43 | + config.StateSwitcher = false; |
| 44 | + config.SpeedSwitcher = false; |
| 45 | + }), |
| 46 | + BASIC(config ->{ |
| 47 | + config.NoClipEnabled = false; |
| 48 | + config.PlaceOnAir = false; |
| 49 | + config.CodeClientAPI = true; |
| 50 | + config.CustomBlockInteractions = false; |
| 51 | + config.CustomTagInteraction = true; |
| 52 | + config.CodeLayerInteractionMode = Config.LayerInteractionMode.AUTO; |
| 53 | + config.RecentChestInsert = true; |
| 54 | + config.ChestPeeker = true; |
| 55 | + config.ScopeSwitcher = true; |
| 56 | + config.TeleportUp = false; |
| 57 | + config.TeleportDown = false; |
| 58 | + config.SignPeeker = true; |
| 59 | + config.CustomCodeChest = Config.CustomChestMenuType.OFF; |
| 60 | + config.AdvancedMiddleClick = false; |
| 61 | + config.ChatEditsVars = true; |
| 62 | + config.InsertOverlay = false; |
| 63 | + config.ParameterGhosts = false; |
| 64 | + config.ActionViewer = true; |
| 65 | + config.ValueDetails = true; |
| 66 | + config.PhaseToggle = true; |
| 67 | + config.DestroyItemResetMode = Config.DestroyItemReset.OFF; |
| 68 | + config.ShowVariableScopeBelowName = true; |
| 69 | + config.CPUDisplay = true; |
| 70 | + config.CPUDisplayCorner = Config.CPUDisplayCornerOption.TOP_LEFT; |
| 71 | + config.HideScopeChangeMessages = true; |
| 72 | + config.HighlighterEnabled = true; |
| 73 | + config.HighlightExpressions = true; |
| 74 | + config.HighlightMiniMessage = true; |
| 75 | + config.StateSwitcher = true; |
| 76 | + config.SpeedSwitcher = true; |
| 77 | + }), |
| 78 | + FULL(config -> { |
| 79 | + config.NoClipEnabled = true; |
| 80 | + config.CodeClientAPI = true; |
| 81 | + config.CustomBlockInteractions = true; |
| 82 | + config.CustomTagInteraction = true; |
| 83 | + config.CodeLayerInteractionMode = Config.LayerInteractionMode.AUTO; |
| 84 | + config.RecentChestInsert = true; |
| 85 | + config.ChestPeeker = true; |
| 86 | + config.ScopeSwitcher = true; |
| 87 | + config.TeleportUp = true; |
| 88 | + config.TeleportDown = true; |
| 89 | + config.SignPeeker = true; |
| 90 | + config.CustomCodeChest = Config.CustomChestMenuType.OFF; |
| 91 | + config.ChatEditsVars = true; |
| 92 | + config.InsertOverlay = true; |
| 93 | + config.ParameterGhosts = true; |
| 94 | + config.ActionViewer = true; |
| 95 | + config.ValueDetails = true; |
| 96 | + config.PhaseToggle = true; |
| 97 | + config.DestroyItemResetMode = Config.DestroyItemReset.OFF; |
| 98 | + config.ShowVariableScopeBelowName = true; |
| 99 | + config.CPUDisplay = true; |
| 100 | + config.CPUDisplayCorner = Config.CPUDisplayCornerOption.TOP_LEFT; |
| 101 | + config.HideScopeChangeMessages = true; |
| 102 | + config.HighlighterEnabled = true; |
| 103 | + config.HighlightExpressions = true; |
| 104 | + config.HighlightMiniMessage = true; |
| 105 | + config.StateSwitcher = true; |
| 106 | + config.SpeedSwitcher = true; |
| 107 | + }) |
| 108 | + ; |
| 109 | + |
| 110 | + private final Consumer<Config> apply; |
| 111 | + ConfigPreset(Consumer<Config> apply) { |
| 112 | + this.apply = apply; |
| 113 | + } |
| 114 | + |
| 115 | + public Consumer<Config> getApply() { |
| 116 | + return apply; |
| 117 | + } |
| 118 | +} |
0 commit comments