Add EntityRenderer renderWorldPass injection

This commit is contained in:
Howard Stark 2018-08-04 21:27:34 -04:00
parent d3a2238493
commit 89a64a375e
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3
3 changed files with 28 additions and 13 deletions

View File

@ -0,0 +1,4 @@
package baritone.bot;
public class RenderPassHandler {
}

View File

@ -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();
}

View File

@ -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) {
}
}