Add EntityRenderer renderWorldPass injection
This commit is contained in:
parent
d3a2238493
commit
89a64a375e
4
src/main/java/baritone/bot/RenderPassHandler.java
Normal file
4
src/main/java/baritone/bot/RenderPassHandler.java
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
package baritone.bot;
|
||||||
|
|
||||||
|
public class RenderPassHandler {
|
||||||
|
}
|
@ -1,13 +0,0 @@
|
|||||||
package baritone.bot.pathing.movement;
|
|
||||||
|
|
||||||
public interface IMovement {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Handles the execution of the latest Movement
|
|
||||||
* State, and offers a Status to the calling class.
|
|
||||||
*
|
|
||||||
* @return Status
|
|
||||||
*/
|
|
||||||
MovementState.MovementStatus update();
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1,24 @@
|
|||||||
|
package baritone.launch.mixins;
|
||||||
|
|
||||||
|
import net.minecraft.client.renderer.EntityRenderer;
|
||||||
|
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(EntityRenderer.class)
|
||||||
|
public class MixinEntityRenderer {
|
||||||
|
|
||||||
|
@Inject(
|
||||||
|
method = "renderWorldPass",
|
||||||
|
at = @At(
|
||||||
|
value = "INVOKE_STRING",
|
||||||
|
target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V", args = { "ldc=hand" }
|
||||||
|
)
|
||||||
|
)
|
||||||
|
private void renderWorldPass(CallbackInfo ci) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user