Added remaining item render hooks, and fixed a static method access

This commit is contained in:
newthead 2012-03-16 21:27:05 -07:00
parent 7efd97399f
commit 391fbbd42b
2 changed files with 14 additions and 3 deletions

View File

@ -16,6 +16,8 @@ import net.minecraft.src.ItemStack;
import org.lwjgl.opengl.GL11;
import java.util.*;
import net.minecraft.src.*;
import org.lwjgl.opengl.GL12;
public class ForgeHooksClient
{
@ -249,7 +251,12 @@ public class ForgeHooksClient
return def;
}
}
public static void renderEntityItem(IEntityItemRenderer customRenderer, RenderBlocks renderBlocks, EntityItem item, int itemID, int metadata)
{
customRenderer.renderEntityItem(renderBlocks, item, itemID, metadata);
}
public static void renderEquippedItem(IEquippedItemRenderer customRenderer, RenderBlocks renderBlocks, EntityLiving entity, int itemID, int metadata)
{
if (MinecraftForgeClient.renderEquippedItemAsBlock(itemID))
@ -270,5 +277,9 @@ public class ForgeHooksClient
GL11.glPopMatrix();
}
}
public static void renderInventoryItem(IInventoryItemRenderer customRenderer, RenderBlocks renderBlocks, int itemID, int metadata)
{
customRenderer.renderInventoryItem(renderBlocks, itemID, metadata);
}
}

View File

@ -100,7 +100,7 @@ public class MinecraftForgeClient
return customEntityItemRenderers[itemID];
}
public boolean applyEntityItemRotationEffect(int itemID)
public static boolean applyEntityItemRotationEffect(int itemID)
{
return applyEntityItemRotation[itemID];
}