-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7aa156
commit 85668fa
Showing
34 changed files
with
153 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,6 @@ pluginManagement { | |
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
} | ||
} | ||
|
||
rootProject.name = "Limelight" |
11 changes: 0 additions & 11 deletions
11
src/client/java/me/basiqueevangelist/flashlight/api/FlashlightEntrypoint.java
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/client/java/me/basiqueevangelist/flashlight/api/module/FlashlightModules.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/client/java/me/basiqueevangelist/flashlight/impl/builtin/BuiltinModules.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/client/java/me/basiqueevangelist/flashlight/impl/pond/TextFieldWidgetAccess.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/client/java/me/basiqueevangelist/limelight/api/LimelightEntrypoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package me.basiqueevangelist.limelight.api; | ||
|
||
import me.basiqueevangelist.limelight.api.module.LimelightModule; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public interface LimelightEntrypoint { | ||
String KEY = "limelight"; | ||
|
||
void registerModules(Consumer<LimelightModule> moduleRegistry); | ||
} |
4 changes: 2 additions & 2 deletions
4
...t/api/action/InvokeResultEntryAction.java → ...t/api/action/InvokeResultEntryAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...shlight/api/action/ResultEntryAction.java → ...melight/api/action/ResultEntryAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.basiqueevangelist.flashlight.api.action; | ||
package me.basiqueevangelist.limelight.api.action; | ||
|
||
public sealed interface ResultEntryAction permits InvokeResultEntryAction { | ||
} |
10 changes: 5 additions & 5 deletions
10
...ist/flashlight/api/entry/ResultEntry.java → ...list/limelight/api/entry/ResultEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hlight/api/entry/ResultEntryGatherer.java → ...elight/api/entry/ResultEntryGatherer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/client/java/me/basiqueevangelist/limelight/api/module/LimelightModules.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package me.basiqueevangelist.limelight.api.module; | ||
|
||
import me.basiqueevangelist.limelight.impl.ModuleManager; | ||
import org.jetbrains.annotations.UnmodifiableView; | ||
|
||
import java.util.List; | ||
|
||
public final class LimelightModules { | ||
public LimelightModules() { | ||
|
||
} | ||
|
||
public static @UnmodifiableView List<LimelightModule> allModules() { | ||
return ModuleManager.allModules(); | ||
} | ||
} |
16 changes: 8 additions & 8 deletions
16
...vangelist/flashlight/impl/Flashlight.java → ...eevangelist/limelight/impl/Limelight.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
package me.basiqueevangelist.flashlight.impl; | ||
package me.basiqueevangelist.limelight.impl; | ||
|
||
import me.basiqueevangelist.flashlight.impl.ui.FlashlightScreen; | ||
import me.basiqueevangelist.limelight.impl.ui.LimelightScreen; | ||
import net.fabricmc.api.ClientModInitializer; | ||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; | ||
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper; | ||
import net.minecraft.client.option.KeyBinding; | ||
import net.minecraft.util.Identifier; | ||
import org.lwjgl.glfw.GLFW; | ||
|
||
public class Flashlight implements ClientModInitializer { | ||
public static KeyBinding OPEN_FLASHLIGHT = new KeyBinding("key.flashlight.open", GLFW.GLFW_KEY_LEFT_BRACKET, KeyBinding.MISC_CATEGORY); | ||
public class Limelight implements ClientModInitializer { | ||
public static KeyBinding OPEN_LIMELIGHT = new KeyBinding("key.limelight.open", GLFW.GLFW_KEY_LEFT_BRACKET, KeyBinding.MISC_CATEGORY); | ||
|
||
@Override | ||
public void onInitializeClient() { | ||
KeyBindingHelper.registerKeyBinding(OPEN_FLASHLIGHT); | ||
KeyBindingHelper.registerKeyBinding(OPEN_LIMELIGHT); | ||
|
||
ModuleManager.init(); | ||
|
||
ClientTickEvents.END_CLIENT_TICK.register(client -> { | ||
if (!OPEN_FLASHLIGHT.wasPressed()) return; | ||
if (!OPEN_LIMELIGHT.wasPressed()) return; | ||
if (client.player == null) return; | ||
|
||
client.setScreen(new FlashlightScreen()); | ||
client.setScreen(new LimelightScreen()); | ||
}); | ||
} | ||
|
||
public static Identifier id(String path) { | ||
return Identifier.of("flashlight", path); | ||
return Identifier.of("limelight", path); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/client/java/me/basiqueevangelist/limelight/impl/builtin/BuiltinModules.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package me.basiqueevangelist.limelight.impl.builtin; | ||
|
||
import me.basiqueevangelist.limelight.api.LimelightEntrypoint; | ||
import me.basiqueevangelist.limelight.api.module.LimelightModule; | ||
import net.fabricmc.loader.api.FabricLoader; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public class BuiltinModules implements LimelightEntrypoint { | ||
@Override | ||
public void registerModules(Consumer<LimelightModule> moduleRegistry) { | ||
moduleRegistry.accept(KeyBindingsModule.INSTANCE); | ||
if (FabricLoader.getInstance().isModLoaded("modmenu")) moduleRegistry.accept(ModConfigModule.INSTANCE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.