Create object for render event containing partial ticks

This commit is contained in:
Brady
2018-08-05 14:42:46 -05:00
parent d74660f7e5
commit cb09af571a
6 changed files with 41 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
package baritone.launch.mixins;
import baritone.bot.Baritone;
import baritone.bot.event.events.RenderEvent;
import net.minecraft.client.renderer.EntityRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
@@ -18,7 +19,7 @@ public class MixinEntityRenderer {
args = { "ldc=hand" }
)
)
private void renderWorldPass(CallbackInfo ci) {
Baritone.INSTANCE.getGameEventHandler().onRenderPass();
private void renderWorldPass(int pass, float partialTicks, long finishTimeNano, CallbackInfo ci) {
Baritone.INSTANCE.getGameEventHandler().onRenderPass(new RenderEvent(partialTicks));
}
}