use of net.minecraft.item.ItemPickaxe in project Minechem by iopleke.
the class AugmentedItem method renderOverlay.
@Override
public void renderOverlay(FontRenderer fontRenderer, TextureManager textureManager, ItemStack itemStack, int left, int top, float z) {
RenderHelper.enableBlend();
RenderHelper.setOpacity(1.0F);
textureManager.bindTexture(TextureMap.locationItemsTexture);
ItemStack wrappedItemStack = getWrappedItemStack(itemStack);
if (wrappedItemStack != null) {
Item wrappedItem = wrappedItemStack.getItem();
if (wrappedItem instanceof ItemAxe) {
RenderHelper.drawTexturedRectUV(left, top, z + 10, 16, 16, augmentIcon[AXEICON]);
} else if (wrappedItem instanceof ItemHoe) {
RenderHelper.drawTexturedRectUV(left, top, z + 10, 16, 16, augmentIcon[HOEICON]);
} else if (wrappedItem instanceof ItemPickaxe) {
RenderHelper.drawTexturedRectUV(left, top, z + 10, 16, 16, augmentIcon[PICKICON]);
} else if (wrappedItem instanceof ItemSpade) {
RenderHelper.drawTexturedRectUV(left, top, z + 10, 16, 16, augmentIcon[SHOVELICON]);
} else if (wrappedItem instanceof ItemSword) {
RenderHelper.drawTexturedRectUV(left, top, z + 10, 16, 16, augmentIcon[SWORDICON]);
} else {
RenderHelper.drawTexturedRectUV(left, top, z + 10, 16, 16, augmentIcon[DEFAULTICON]);
}
}
RenderHelper.resetOpacity();
RenderHelper.disableBlend();
}
Aggregations