generated from MeteorDevelopment/meteor-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIG System + Naming Convention (#35)
* Remove HIGPrefix module * Add HIG System and Tab * Naming convention Use the same naming scheme, any module that is an improved version of meteor's should use the format "[module name] HIG" * Teehee :3 * Okay Git * Readd identifier method * Correctly order modules * Correct spacing
- Loading branch information
1 parent
3518410
commit 1e51939
Showing
13 changed files
with
299 additions
and
147 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
25 changes: 25 additions & 0 deletions
25
src/main/java/me/redcarlos/higtools/mixins/SystemsMixin.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,25 @@ | ||
package me.redcarlos.higtools.mixins; | ||
|
||
import me.redcarlos.higtools.system.HIGSystem; | ||
import meteordevelopment.meteorclient.systems.System; | ||
import meteordevelopment.meteorclient.systems.Systems; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(value = Systems.class, remap = false) | ||
public abstract class SystemsMixin { | ||
@Shadow | ||
private static System<?> add(System<?> system) { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Inject(method = "init", at = @At("HEAD")) | ||
private static void injectSystem(CallbackInfo ci) { | ||
System<?> higSystem = add(new HIGSystem()); | ||
higSystem.init(); | ||
higSystem.load(); | ||
} | ||
} |
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
62 changes: 0 additions & 62 deletions
62
src/main/java/me/redcarlos/higtools/modules/main/HIGPrefix.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.