Added remaining item render hooks, and fixed a static method access
This commit is contained in:
parent
7efd97399f
commit
391fbbd42b
|
@ -16,6 +16,8 @@ import net.minecraft.src.ItemStack;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import net.minecraft.src.*;
|
||||||
|
import org.lwjgl.opengl.GL12;
|
||||||
|
|
||||||
public class ForgeHooksClient
|
public class ForgeHooksClient
|
||||||
{
|
{
|
||||||
|
@ -250,6 +252,11 @@ public class ForgeHooksClient
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
public static void renderEquippedItem(IEquippedItemRenderer customRenderer, RenderBlocks renderBlocks, EntityLiving entity, int itemID, int metadata)
|
||||||
{
|
{
|
||||||
if (MinecraftForgeClient.renderEquippedItemAsBlock(itemID))
|
if (MinecraftForgeClient.renderEquippedItemAsBlock(itemID))
|
||||||
|
@ -270,5 +277,9 @@ public class ForgeHooksClient
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
public static void renderInventoryItem(IInventoryItemRenderer customRenderer, RenderBlocks renderBlocks, int itemID, int metadata)
|
||||||
|
{
|
||||||
|
customRenderer.renderInventoryItem(renderBlocks, itemID, metadata);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class MinecraftForgeClient
|
||||||
return customEntityItemRenderers[itemID];
|
return customEntityItemRenderers[itemID];
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean applyEntityItemRotationEffect(int itemID)
|
public static boolean applyEntityItemRotationEffect(int itemID)
|
||||||
{
|
{
|
||||||
return applyEntityItemRotation[itemID];
|
return applyEntityItemRotation[itemID];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue