use of com.tangykiwi.kiwiclient.event.DrawOverlayEvent in project KiwiClient by TangyKiwi.
the class InGameHudMixin method render.
@Inject(method = "render", at = @At(value = "TAIL"), cancellable = true)
private void render(CallbackInfo info) {
if (!MinecraftClient.getInstance().options.debugEnabled) {
MinecraftClient client = MinecraftClient.getInstance();
TextRenderer textRenderer = client.textRenderer;
TextureManager textureManager = client.getTextureManager();
MatrixStack matrixStack = new MatrixStack();
RenderSystem.setShaderTexture(0, KiwiClient.DUCK);
client.inGameHud.drawTexture(matrixStack, 0, 0, 0, 0, 130, 130);
}
DrawOverlayEvent event = new DrawOverlayEvent(new MatrixStack());
KiwiClient.eventBus.post(event);
if (event.isCancelled())
info.cancel();
}
Aggregations