Skip to content

Commit 56fbee8

Browse files
Re-order module properties,clean them up, fix typos and remove a dead link (#257)
Co-authored-by: Constructor <[email protected]>
1 parent 2fc0d5a commit 56fbee8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+200
-205
lines changed

src/main/kotlin/com/lambda/client/module/modules/chat/AntiSpam.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
package com.lambda.client.module.modules.chat
22

33
import com.lambda.client.LambdaMod
4+
import com.lambda.client.event.listener.listener
45
import com.lambda.client.module.Category
56
import com.lambda.client.module.Module
67
import com.lambda.client.util.text.MessageDetection
78
import com.lambda.client.util.text.MessageSendHelper
89
import com.lambda.client.util.text.SpamFilters
9-
import com.lambda.client.event.listener.listener
1010
import net.minecraft.util.text.TextComponentString
1111
import net.minecraftforge.client.event.ClientChatReceivedEvent
1212
import java.util.concurrent.ConcurrentHashMap
1313
import java.util.regex.Pattern
1414

1515
object AntiSpam : Module(
1616
name = "AntiSpam",
17-
category = Category.CHAT,
1817
description = "Removes spam and advertising from the chat",
18+
category = Category.CHAT,
1919
showOnArray = false
2020
) {
2121
private val mode by setting("Mode", Mode.REPLACE)

src/main/kotlin/com/lambda/client/module/modules/chat/ChatTimestamp.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
package com.lambda.client.module.modules.chat
22

3+
import com.lambda.client.commons.interfaces.DisplayEnum
34
import com.lambda.client.module.Category
45
import com.lambda.client.module.Module
56
import com.lambda.client.util.TimeUtils
67
import com.lambda.client.util.color.EnumTextColor
78
import com.lambda.client.util.text.format
89
import com.lambda.client.util.threads.safeListener
9-
import com.lambda.client.commons.interfaces.DisplayEnum
1010
import net.minecraft.util.text.TextComponentString
1111
import net.minecraftforge.client.event.ClientChatReceivedEvent
1212

1313
object ChatTimestamp : Module(
1414
name = "ChatTimestamp",
15-
category = Category.CHAT,
1615
description = "Shows the time a message was sent beside the message",
16+
category = Category.CHAT,
1717
showOnArray = false
1818
) {
1919
private val color by setting("Color", EnumTextColor.GRAY)

src/main/kotlin/com/lambda/client/module/modules/chat/CustomChat.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import kotlin.math.min
99

1010
object CustomChat : Module(
1111
name = "CustomChat",
12-
category = Category.CHAT,
1312
description = "Add a custom ending to your message!",
13+
category = Category.CHAT,
1414
showOnArray = false,
1515
modulePriority = 200
1616
) {
@@ -25,7 +25,7 @@ object CustomChat : Module(
2525
}
2626

2727
private enum class TextMode {
28-
NAME, ON_TOP, WEBSITE, CUSTOM
28+
NAME, ON_TOP, CUSTOM
2929
}
3030

3131
private val modifier = newMessageModifier(
@@ -57,7 +57,6 @@ object CustomChat : Module(
5757
private fun getText() = when (textMode) {
5858
TextMode.NAME -> "ʟᴀᴍʙᴅᴀ"
5959
TextMode.ON_TOP -> "ʟᴀᴍʙᴅᴀ ᴏɴ ᴛᴏᴘ"
60-
TextMode.WEBSITE -> "lambda-client.com"
6160
TextMode.CUSTOM -> customText
6261
}
6362

src/main/kotlin/com/lambda/client/module/modules/chat/ExtraChatHistory.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo
88

99
object ExtraChatHistory : Module(
1010
name = "ExtraChatHistory",
11-
alias = arrayOf("InfiniteChat", "InfiniteChatHistory"),
12-
category = Category.CHAT,
1311
description = "Show more messages in the chat history",
12+
category = Category.CHAT,
13+
alias = arrayOf("InfiniteChat", "InfiniteChatHistory"),
1414
showOnArray = false
1515
) {
1616
private val maxMessages by setting("Max Message", 1000, 100..5000, 100)

src/main/kotlin/com/lambda/client/module/modules/chat/FancyChat.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package com.lambda.client.module.modules.chat
22

3+
import com.lambda.client.commons.utils.MathUtils
34
import com.lambda.client.manager.managers.MessageManager.newMessageModifier
45
import com.lambda.client.module.Category
56
import com.lambda.client.module.Module
67
import com.lambda.client.util.text.MessageDetection
7-
import com.lambda.client.commons.utils.MathUtils
88
import kotlin.math.min
99

1010
object FancyChat : Module(
1111
name = "FancyChat",
12-
category = Category.CHAT,
1312
description = "Makes messages you send fancy",
13+
category = Category.CHAT,
1414
showOnArray = false,
1515
modulePriority = 100
1616
) {

src/main/kotlin/com/lambda/client/module/modules/chat/LambdaMoji.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
package com.lambda.client.module.modules.chat
22

3+
import com.lambda.client.commons.extension.ceilToInt
34
import com.lambda.client.manager.managers.LambdaMojiManager
45
import com.lambda.client.module.Category
56
import com.lambda.client.module.Module
67
import com.lambda.client.util.graphics.GlStateUtils
78
import com.lambda.client.util.graphics.texture.MipmapTexture
8-
import com.lambda.client.commons.extension.ceilToInt
99
import net.minecraft.client.renderer.GlStateManager
1010
import net.minecraft.client.renderer.Tessellator
1111
import net.minecraft.client.renderer.vertex.DefaultVertexFormats
1212
import org.lwjgl.opengl.GL11.*
1313

1414
object LambdaMoji : Module(
1515
name = "LambdaMoji",
16-
description = "Add emojis to chat using LambdaMoji, courtesy of the EmojiAPI.",
16+
description = "Add emojis to chat using LambdaMoji, courtesy of the EmojiAPI",
1717
category = Category.CHAT
1818
) {
1919
@JvmStatic

src/main/kotlin/com/lambda/client/module/modules/chat/LoginMessage.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.lambda.client.module.modules.chat
22

33
import com.lambda.client.event.events.ConnectionEvent
4+
import com.lambda.client.event.listener.listener
45
import com.lambda.client.module.Category
56
import com.lambda.client.module.Module
67
import com.lambda.client.util.MovementUtils.isMoving
@@ -19,7 +20,7 @@ import java.util.concurrent.CopyOnWriteArrayList
1920

2021
object LoginMessage : Module(
2122
name = "LoginMessage",
22-
description = "Sends a given message(s) to public chat on login.",
23+
description = "Sends a given message(s) to public chat on login",
2324
category = Category.CHAT,
2425
showOnArray = false,
2526
modulePriority = 150

src/main/kotlin/com/lambda/client/module/modules/chat/PortalChat.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import com.lambda.client.module.Module
99
*/
1010
object PortalChat : Module(
1111
name = "PortalChat",
12-
category = Category.CHAT,
1312
description = "Allows you to open GUIs in portals",
13+
category = Category.CHAT,
1414
showOnArray = false
1515
)

src/main/kotlin/com/lambda/client/module/modules/client/Baritone.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ package com.lambda.client.module.modules.client
22

33
import com.lambda.client.event.events.BaritoneSettingsInitEvent
44
import com.lambda.client.event.events.RenderRadarEvent
5+
import com.lambda.client.event.listener.listener
56
import com.lambda.client.module.Category
67
import com.lambda.client.module.Module
78
import com.lambda.client.util.BaritoneUtils
89
import com.lambda.client.util.color.ColorHolder
910
import com.lambda.client.util.graphics.RenderUtils2D
1011
import com.lambda.client.util.math.Vec2d
1112
import com.lambda.client.util.threads.safeListener
12-
import com.lambda.client.event.listener.listener
1313
import net.minecraft.util.math.BlockPos
1414

1515
object Baritone : Module(
1616
name = "Baritone",
17-
category = Category.CLIENT,
1817
description = "Configures Baritone settings",
18+
category = Category.CLIENT,
1919
showOnArray = false,
2020
alwaysEnabled = true
2121
) {

src/main/kotlin/com/lambda/client/module/modules/client/Capes.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ package com.lambda.client.module.modules.client
22

33
import com.google.gson.Gson
44
import com.google.gson.reflect.TypeToken
5+
import com.lambda.client.LambdaMod
56
import com.lambda.client.capeapi.Cape
67
import com.lambda.client.capeapi.CapeType
78
import com.lambda.client.capeapi.CapeUser
8-
import com.lambda.client.LambdaMod
9+
import com.lambda.client.commons.extension.synchronized
10+
import com.lambda.client.commons.utils.ConnectionUtils
911
import com.lambda.client.gui.clickgui.LambdaClickGui
1012
import com.lambda.client.module.Category
1113
import com.lambda.client.module.Module
@@ -16,8 +18,6 @@ import com.lambda.client.util.color.ColorHolder
1618
import com.lambda.client.util.color.DyeColors
1719
import com.lambda.client.util.threads.BackgroundScope
1820
import com.lambda.client.util.threads.defaultScope
19-
import com.lambda.client.commons.extension.synchronized
20-
import com.lambda.client.commons.utils.ConnectionUtils
2121
import kotlinx.coroutines.Dispatchers
2222
import kotlinx.coroutines.launch
2323
import kotlinx.coroutines.withContext
@@ -38,8 +38,8 @@ import kotlin.math.sin
3838

3939
object Capes : Module(
4040
name = "Capes",
41-
category = Category.CLIENT,
4241
description = "Controls the display of Lambda capes",
42+
category = Category.CLIENT,
4343
showOnArray = false,
4444
enabledByDefault = true
4545
) {

0 commit comments

Comments
 (0)