forge updates

This commit is contained in:
kitsushadow
2015-07-02 05:01:11 -04:00
parent 80231e7888
commit 590ba1b08e
32 changed files with 114 additions and 126 deletions

View File

@@ -54,8 +54,8 @@ public class ForgeRenderer extends TileEntitySpecialRenderer {
this.entCoal.hoverStart = 0.0F;
RenderItem.renderInFrame = true;
GL11.glScalef(0.5f, 0.5f, 0.5f);
GL11.glRotatef(90, 1, 0, 0);
RenderManager.instance.renderEntityWithPosYaw(entCoal, 1.55D, 1.3D, -0.79D, 0.0F, 0.0F);
RenderManager.instance.renderEntityWithPosYaw(entCoal, 1.0D, 1.0D, -0.5D, 0.0F, 0.0F);
RenderManager.instance.renderEntityWithPosYaw(entCoal, 1.15D, 1.3D, -0.79D, 0.0F, 0.0F);
RenderManager.instance.renderEntityWithPosYaw(entCoal, 0.75D, 1.3D, -0.79D, 0.0F, 0.0F);
RenderManager.instance.renderEntityWithPosYaw(entCoal, 0.35D, 1.3D, -0.79D, 0.0F, 0.0F);
@@ -85,7 +85,7 @@ public class ForgeRenderer extends TileEntitySpecialRenderer {
RenderItem.renderInFrame = true;
GL11.glScalef(1.0f, 1.0f, 1.0f);
GL11.glRotatef(10, 0, 1, 0);
RenderManager.instance.renderEntityWithPosYaw(entItem, 0.4D, 0.325D, 0.6D, 0.0F, 0.0F);
RenderManager.instance.renderEntityWithPosYaw(entItem, 0.4D, 0.3D, 0.6D, 0.0F, 0.0F);
RenderItem.renderInFrame = false;
GL11.glPopMatrix();
}
@@ -101,7 +101,7 @@ public class ForgeRenderer extends TileEntitySpecialRenderer {
GL11.glPushMatrix();
//GL11.glRotatef(15F, 0F, 1F, 0F);
float scale = 0.50f;
GL11.glScalef(scale, scale, scale);
GL11.glScalef(scale, 1f, scale);
GL11.glTranslatef(1.0F, 0.2F, 1.0F);
int dir = world.getBlockMetadata(i, j, k);
if(dir == 1){

View File

@@ -15,6 +15,8 @@ public class IronPlateIR implements IItemRenderer {
public static final ResourceLocation MODEL_CRUCIBLE = new ResourceLocation("kitsumedievalcraft:models/IronPlate.obj");
public static final ResourceLocation TEXTURE = new ResourceLocation("kitsumedievalcraft:models/IronPlate.png");
public static final ResourceLocation TEXTURE1 = new ResourceLocation("kitsumedievalcraft:models/HotIronPlate.png");
private ResourceLocation loc;
public IModelCustom model = AdvancedModelLoader.loadModel(MODEL_CRUCIBLE);
@@ -73,14 +75,15 @@ public class IronPlateIR implements IItemRenderer {
GL11.glPushMatrix();
float scale = 0.75F;
GL11.glScalef(scale, 3.5F, scale);
//ANGLE, X ROTATE, Y ROTATE, Z ROTATE
//GL11.glRotatef(90F, 0.0F, 0.0F, 1.0F);
//GL11.glRotatef(10F, 1.0F, 0.0F, 0.0F);
//GL11.glRotated(90, 1.0, 0.0, 0.0);
GL11.glTranslatef(1.0F, 0.0F, 0.0F);
if(item.getItemDamage()==0){
loc=TEXTURE;
}
if(item.getItemDamage()==1){
loc=TEXTURE1;
}
Minecraft.getMinecraft().renderEngine.bindTexture(loc);
Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURE);
model.renderAll();
@@ -92,15 +95,15 @@ public class IronPlateIR implements IItemRenderer {
float f = 2.0F;
GL11.glPushMatrix();
GL11.glScalef(f, 8.0F, f);
//ANGLE, X ROTATE, Y ROTATE, Z ROTATE
GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
GL11.glTranslatef(1.3F, -0.2F, 1.7F);
Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURE);
if(item.getItemDamage()==0){
loc=TEXTURE;
}
if(item.getItemDamage()==1){
loc=TEXTURE1;
}
Minecraft.getMinecraft().renderEngine.bindTexture(loc);
model.renderAll();
GL11.glPopMatrix();
@@ -113,13 +116,13 @@ public class IronPlateIR implements IItemRenderer {
GL11.glEnable(GL11.GL_TEXTURE_2D);
float f = 0.66F;
GL11.glScalef(f, 4.0F, f);
//GL11.glRotatef(90, 1.0F, 0.0F, 0.0F);
//GL11.glTranslatef(1.0F, 0.0F, -1.0F);
Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURE);
if(item.getItemDamage()==0){
loc=TEXTURE;
}
if(item.getItemDamage()==1){
loc=TEXTURE1;
}
Minecraft.getMinecraft().renderEngine.bindTexture(loc);
model.renderAll();
GL11.glPopMatrix();
@@ -128,12 +131,14 @@ public class IronPlateIR implements IItemRenderer {
case ENTITY: {
GL11.glPushMatrix();
//float f = 0.8F;
GL11.glScalef(1.0F, 3.0F, 1.0F);
//GL11.glTranslatef(0.0F, 0.0F, 0.0F);
Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURE);
if(item.getItemDamage()==0){
loc=TEXTURE;
}
if(item.getItemDamage()==1){
loc=TEXTURE1;
}
Minecraft.getMinecraft().renderEngine.bindTexture(loc);
model.renderAll();
GL11.glPopMatrix();