-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make every module in the fun category it's own file #53
Conversation
WalkthroughThe recent changes in the codebase involve cleanup and enhancement of the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- src/main/java/keystrokesmod/module/ModuleManager.java (2 hunks)
- src/main/java/keystrokesmod/module/impl/fun/ExtraBobbing.java (1 hunks)
- src/main/java/keystrokesmod/module/impl/fun/FlameTrail.java (1 hunks)
- src/main/java/keystrokesmod/module/impl/fun/SlyPort.java (1 hunks)
- src/main/java/keystrokesmod/module/impl/fun/Spin.java (1 hunks)
Files skipped from review due to trivial changes (1)
- src/main/java/keystrokesmod/module/ModuleManager.java
Additional comments not posted (18)
src/main/java/keystrokesmod/module/impl/fun/FlameTrail.java (3)
11-13
: Constructor looks good.The constructor correctly initializes the module with the name "Flame Trail", category "fun", and a key binding of 0.
15-21
: onUpdate method looks good.The method correctly calculates the player's position and spawns a flame particle at that position.
8-8
: Class definition looks good.The class
FlameTrail
is well-defined with a constructor and anonUpdate
method.src/main/java/keystrokesmod/module/impl/fun/ExtraBobbing.java (5)
11-14
: Constructor looks good.The constructor correctly initializes the module with the name "Extra Bobbing", category "fun", key binding of 0, and a slider setting for the bobbing level.
16-22
: onEnable method looks good.The method correctly saves the current view bobbing setting and enables it if not already enabled.
24-26
: onDisable method looks good.The method correctly restores the saved view bobbing setting.
28-37
: onUpdate method looks good.The method correctly ensures view bobbing is enabled and adjusts the camera yaw based on player movement and the slider setting.
7-7
: Class definition looks good.The class
ExtraBobbing
is well-defined with a constructor and methods for enabling, disabling, and updating the module.src/main/java/keystrokesmod/module/impl/fun/Spin.java (5)
14-18
: Constructor looks good.The constructor correctly initializes the module with the name "Spin", category "fun", key binding of 0, and slider settings for rotation and speed.
20-22
: onEnable method looks good.The method correctly saves the player's current rotation yaw.
24-26
: onDisable method looks good.The method correctly resets the saved yaw to 0.0F.
28-41
: onUpdate method looks good.The method correctly adjusts the player's rotation yaw based on the rotation and speed settings and disables the module when the rotation is complete.
9-9
: Class definition looks good.The class
Spin
is well-defined with a constructor and methods for enabling, disabling, and updating the module.src/main/java/keystrokesmod/module/impl/fun/SlyPort.java (5)
24-31
: Constructor looks good.The constructor correctly initializes the module with the name "SlyPort", category "fun", key binding of 0, description, range, aim, sound, and players-only settings.
33-40
: onEnable method looks good.The method correctly finds an entity to teleport behind and performs the teleportation if an entity is found.
42-55
: tp method looks good.The method correctly performs the teleportation, plays the sound if the sound setting is enabled, and aims at the entity if the aim setting is enabled.
57-87
: ge method looks good.The method correctly finds the closest valid entity within the specified range that is not a bot and meets the players-only setting.
16-16
: Class definition looks good.The class
SlyPort
is well-defined with a constructor and methods for enabling, teleporting, and finding entities.
Great! I have also included documentation for each module, which can be accessed at https://wiki.client.wtf. |
good! |
Why was this not done before??
Summary by CodeRabbit