/*
        if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) {
            return;
        }
        FIXME: still needed? if so, search for ported way
         */
@SubscribeEvent(priority = EventPriority.NORMAL)
	public void onRenderOverlay(RenderGameOverlayEvent.Post event) {
        /*
        if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) {
            return;
        }
        FIXME: still needed? if so, search for ported way
         */
		ItemStack activeStack = mc.player.getUseItem();
		if (activeStack.getItem() instanceof ModularCrossbowItem) {
			ModularCrossbowItem item = (ModularCrossbowItem) activeStack.getItem();
			gui.setProgress(item.getProgress(activeStack, mc.player), 0);
		} else {
			gui.setProgress(0, 0);
		}
		gui.draw();
	}
@SubscribeEvent(priority = EventPriority.NORMAL)
public void onRenderOverlay(RenderGameOverlayEvent.Post event) {
/*
if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) {
return;
}
FIXME: still needed? if so, search for ported way
*/
ItemStack activeStack = mc.player.getUseItem();
if (activeStack.getItem() instanceof ModularCrossbowItem) {
@SubscribeEvent(priority = EventPriority.NORMAL)
public void onRenderOverlay(RenderGameOverlayEvent.Post event) {
/*
if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) {
return;
}
FIXME: still needed? if so, search for ported way
*/
ItemStack activeStack = mc.player.getUseItem();
if (activeStack.getItem() instanceof ModularCrossbowItem) {
ModularCrossbowItem item = (ModularCrossbowItem) activeStack.getItem();
gui.setProgress(item.getProgress(activeStack, mc.player), 0);
} else {
gui.setProgress(0, 0);
}
gui.draw();
}
@SubscribeEvent(priority = EventPriority.NORMAL)
public void onRenderOverlay(RenderGameOverlayEvent.Post event) {
/*
if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) {
return;
}
FIXME: still needed? if so, search for ported way
*/
ItemStack activeStack = mc.player.getUseItem();
if (activeStack.getItem() instanceof ModularCrossbowItem) {
ModularCrossbowItem item = (ModularCrossbowItem) activeStack.getItem();
gui.setProgress(item.getProgress(activeStack, mc.player), 0);
} else {
gui.setProgress(0, 0);
}
gui.draw();
}