Skip to content

Commit 83caf38

Browse files
committed
keybind as one word
1 parent fdd28f4 commit 83caf38

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/kotlin/com/lambda/config/Configurable.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import com.lambda.config.settings.comparable.EnumSetting
3333
import com.lambda.config.settings.complex.BlockPosSetting
3434
import com.lambda.config.settings.complex.BlockSetting
3535
import com.lambda.config.settings.complex.ColorSetting
36-
import com.lambda.config.settings.complex.KeyBindSetting
36+
import com.lambda.config.settings.complex.KeybindSetting
3737
import com.lambda.config.settings.complex.Vec3dSetting
3838
import com.lambda.config.settings.numeric.DoubleSetting
3939
import com.lambda.config.settings.numeric.FloatSetting
@@ -370,21 +370,21 @@ abstract class Configurable(
370370
) = LongSetting(name, defaultValue, range, step, description, unit, visibility).register()
371371

372372
/**
373-
* Creates a [KeyBindSetting] with the provided parameters and adds it to the [settings].
373+
* Creates a [KeybindSetting] with the provided parameters and adds it to the [settings].
374374
*
375375
* @param name The unique identifier for the setting.
376376
* @param defaultValue The default [KeyCode] value of the setting.
377377
* @param description A brief explanation of the setting's purpose and behavior.
378378
* @param visibility A lambda expression that determines the visibility status of the setting.
379379
*
380-
* @return The created [KeyBindSetting].
380+
* @return The created [KeybindSetting].
381381
*/
382382
fun setting(
383383
name: String,
384384
defaultValue: KeyCode,
385385
description: String = "",
386386
visibility: () -> Boolean = { true },
387-
) = KeyBindSetting(name, defaultValue, description, visibility).register()
387+
) = KeybindSetting(name, defaultValue, description, visibility).register()
388388

389389
/**
390390
* Creates a [ColorSetting] with the provided parameters and adds it to the [settings].

src/main/kotlin/com/lambda/config/settings/complex/KeyBindSetting.kt renamed to src/main/kotlin/com/lambda/config/settings/complex/KeybindSetting.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import com.lambda.util.StringUtils.capitalize
3030
import com.lambda.util.extension.CommandBuilder
3131
import net.minecraft.command.CommandRegistryAccess
3232

33-
class KeyBindSetting(
33+
class KeybindSetting(
3434
override val name: String,
3535
defaultValue: KeyCode,
3636
description: String,

src/main/kotlin/com/lambda/module/modules/debug/SettingTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ object SettingTest : Module(
6868
private val blockPosSetting by setting("Block Position", BlockPos(0, 0, 0)).group(Group.COMPLEX)
6969
private val blockSetting by setting("Block Setting", Blocks.OBSIDIAN).group(Group.COMPLEX)
7070
private val colorSetting by setting("Color Setting", Color.GREEN).group(Group.COMPLEX)
71-
private val keyBindSetting by setting("Key Bind Setting", KeyCode.T).group(Group.COMPLEX)
71+
private val keybindSetting by setting("Key Bind Setting", KeyCode.T).group(Group.COMPLEX)
7272

7373
// Complex collections
7474
private val blockPosSet by setting("Block Position Set", setOf(BlockPos(0, 0, 0)), setOf(BlockPos(0, 0, 0))).group(Group.COMPLEX)
7575
private val blockList by setting("Block List", listOf(Blocks.OBSIDIAN), listOf(Blocks.OBSIDIAN)).group(Group.COMPLEX)
7676
private val colorMap by setting("Color Map", mapOf("Primary" to Color.GREEN)).group(Group.COMPLEX)
77-
private val keyBindSet by setting("Key Bind Set", setOf(KeyCode.T), setOf(KeyCode.T)).group(Group.COMPLEX)
77+
private val keybindSet by setting("Key Bind Set", setOf(KeyCode.T), setOf(KeyCode.T)).group(Group.COMPLEX)
7878

7979
// Other
8080
private val unitSetting by setting("Unit Test", { this@SettingTest.info("Unit setting") }).group(Group.FUNCTIONAL)

src/main/kotlin/com/lambda/util/text/TextDsl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fun TextBuilder.literal(color: Color = Color.WHITE, value: String) {
140140
* @see StyleBuilder for action
141141
*/
142142
@TextDsl
143-
fun TextBuilder.keyBind(key: String) {
143+
fun TextBuilder.keybind(key: String) {
144144
styleAndAppend(Text.keybind(key))
145145
}
146146

0 commit comments

Comments
 (0)