-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added StorageESP, added Render2DContext and Render3DContext
- Loading branch information
Showing
17 changed files
with
486 additions
and
127 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
progreso-client/src/main/java/org/progreso/client/mixins/MixinWorldRenderer.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,35 @@ | ||
package org.progreso.client.mixins; | ||
|
||
import net.minecraft.client.render.Camera; | ||
import net.minecraft.client.render.GameRenderer; | ||
import net.minecraft.client.render.LightmapTextureManager; | ||
import net.minecraft.client.render.WorldRenderer; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import org.joml.Matrix4f; | ||
import org.progreso.client.Client; | ||
import org.progreso.client.events.render.Render3DEvent; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(WorldRenderer.class) | ||
public abstract class MixinWorldRenderer { | ||
@Inject( | ||
method = "render", | ||
at = @At("RETURN") | ||
) | ||
public void renderHook( | ||
MatrixStack matrices, | ||
float tickDelta, | ||
long limitTime, | ||
boolean renderBlockOutline, | ||
Camera camera, | ||
GameRenderer gameRenderer, | ||
LightmapTextureManager lightmapTextureManager, | ||
Matrix4f projectionMatrix, | ||
CallbackInfo callbackInfo | ||
) { | ||
Client.EVENT_BUS.post(new Render3DEvent(matrices)); | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
progreso-client/src/main/kotlin/org/progreso/client/events/render/Render3DEvent.kt
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,6 @@ | ||
package org.progreso.client.events.render | ||
|
||
import net.minecraft.client.util.math.MatrixStack | ||
import org.progreso.api.event.Event | ||
|
||
data class Render3DEvent(val matrices: MatrixStack) : Event() |
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
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
Oops, something went wrong.