Added meteor mixins
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package cloudburst.rejects.mixin.meteor;
|
||||
|
||||
import minegame159.meteorclient.utils.network.Capes;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@Mixin(Capes.class)
|
||||
public interface CapesAccessor {
|
||||
|
||||
@Accessor("OWNERS")
|
||||
public static Map<UUID, String> getOwners() {
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
@Accessor("URLS")
|
||||
public static Map<String, String> getURLs() {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package cloudburst.rejects.mixin.meteor;
|
||||
|
||||
import minegame159.meteorclient.gui.renderer.GuiRenderer;
|
||||
import minegame159.meteorclient.rendering.MeshBuilder;
|
||||
import org.spongepowered.asm.mixin.*;
|
||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||
|
||||
@Mixin(GuiRenderer.class)
|
||||
public interface GuiRendererAccessor {
|
||||
@Accessor("mb")
|
||||
public MeshBuilder getMeshbuilder();
|
||||
}
|
||||
@@ -6,7 +6,8 @@
|
||||
"name": "Meteor Rejects Addon",
|
||||
"description": "An addon to Meteor Client that adds modules and commands that were too useless to be added to Meteor directly.",
|
||||
"authors": [
|
||||
"Cloudburst"
|
||||
"Cloudburst",
|
||||
"StormyBytes"
|
||||
],
|
||||
"contact": {
|
||||
|
||||
@@ -22,7 +23,8 @@
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"meteor-rejects.mixins.json"
|
||||
"meteor-rejects.mixins.json",
|
||||
"meteor-rejects-meteor.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
|
||||
10
src/main/resources/meteor-rejects-meteor.mixins.json
Normal file
10
src/main/resources/meteor-rejects-meteor.mixins.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "cloudburst.rejects.mixin.meteor",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"mixins": [ ],
|
||||
"client": [
|
||||
"CapesAccessor",
|
||||
"GuiRendererAccessor"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user