Massive rework of configs, items and blocks.
I redone where the items/blocsks are stored and how the configs are handled to clean up it and give space. You can change the config line to AWWayofTime if you want to keep the compatibility with old configs. Now you reference the blocks from the ModBlocks and Items from the ModItems.
This commit is contained in:
parent
8601e9faff
commit
e3644f2d2b
304 changed files with 3941 additions and 5108 deletions
|
@ -1,18 +1,15 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block;
|
||||
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelConduit;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEConduit;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderConduit extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class RenderConduit extends TileEntitySpecialRenderer {
|
||||
private ModelConduit modelConduit = new ModelConduit();
|
||||
|
||||
@Override
|
||||
|
@ -34,7 +31,7 @@ public class RenderConduit extends TileEntitySpecialRenderer
|
|||
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
|
||||
//GL11.glRotatef(90F, 0.0F, 0.0F, 1.0F);
|
||||
//A reference to your Model file. Again, very important.
|
||||
this.modelConduit.render((Entity)null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, tileConduit.getInputDirection(), tileConduit.getOutputDirection());
|
||||
this.modelConduit.render((Entity) null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, tileConduit.getInputDirection(), tileConduit.getOutputDirection());
|
||||
//Tell it to stop rendering for both the PushMatrix's
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelPedestal;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEPedestal;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
|
@ -10,22 +13,15 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelPedestal;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEPedestal;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
public class RenderPedestal extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class RenderPedestal extends TileEntitySpecialRenderer {
|
||||
private ModelPedestal modelPedestal = new ModelPedestal();
|
||||
private final RenderItem customRenderItem;
|
||||
|
||||
public RenderPedestal()
|
||||
{
|
||||
customRenderItem = new RenderItem()
|
||||
{
|
||||
customRenderItem = new RenderItem() {
|
||||
@Override
|
||||
public boolean shouldBob()
|
||||
{
|
||||
|
@ -34,6 +30,7 @@ public class RenderPedestal extends TileEntitySpecialRenderer
|
|||
};
|
||||
customRenderItem.setRenderManager(RenderManager.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileEntity, double d0, double d1, double d2, float f)
|
||||
{
|
||||
|
@ -52,7 +49,7 @@ public class RenderPedestal extends TileEntitySpecialRenderer
|
|||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
|
||||
//A reference to your Model file. Again, very important.
|
||||
this.modelPedestal.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
this.modelPedestal.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
//Tell it to stop rendering for both the PushMatrix's
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
|
@ -61,7 +58,7 @@ public class RenderPedestal extends TileEntitySpecialRenderer
|
|||
if (tileAltar.getStackInSlot(0) != null)
|
||||
{
|
||||
float scaleFactor = getGhostItemScaleFactor(tileAltar.getStackInSlot(0));
|
||||
float rotationAngle = (float)(720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
|
||||
float rotationAngle = (float) (720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
|
||||
EntityItem ghostEntityItem = new EntityItem(tileAltar.worldObj);
|
||||
ghostEntityItem.hoverStart = 0.0F;
|
||||
ghostEntityItem.setEntityItemStack(tileAltar.getStackInSlot(0));
|
||||
|
@ -71,8 +68,7 @@ public class RenderPedestal extends TileEntitySpecialRenderer
|
|||
if (ghostEntityItem.getEntityItem().getItem() instanceof ItemBlock)
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + displacement + 0.7F, (float) d2 + 0.5F);
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + displacement + 0.6F, (float) d2 + 0.5F);
|
||||
}
|
||||
|
@ -117,8 +113,7 @@ public class RenderPedestal extends TileEntitySpecialRenderer
|
|||
default:
|
||||
return 0.90F;
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (customRenderItem.getMiniItemCount(itemStack))
|
||||
{
|
||||
|
@ -197,8 +192,7 @@ public class RenderPedestal extends TileEntitySpecialRenderer
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (forgeDirection)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelPlinth;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
|
@ -10,22 +13,15 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelPlinth;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
public class RenderPlinth extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class RenderPlinth extends TileEntitySpecialRenderer {
|
||||
private ModelPlinth modelPlinth = new ModelPlinth();
|
||||
private final RenderItem customRenderItem;
|
||||
|
||||
public RenderPlinth()
|
||||
{
|
||||
customRenderItem = new RenderItem()
|
||||
{
|
||||
customRenderItem = new RenderItem() {
|
||||
@Override
|
||||
public boolean shouldBob()
|
||||
{
|
||||
|
@ -34,6 +30,7 @@ public class RenderPlinth extends TileEntitySpecialRenderer
|
|||
};
|
||||
customRenderItem.setRenderManager(RenderManager.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileEntity, double d0, double d1, double d2, float f)
|
||||
{
|
||||
|
@ -52,7 +49,7 @@ public class RenderPlinth extends TileEntitySpecialRenderer
|
|||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
|
||||
//A reference to your Model file. Again, very important.
|
||||
this.modelPlinth.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
this.modelPlinth.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
//Tell it to stop rendering for both the PushMatrix's
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
|
@ -70,8 +67,7 @@ public class RenderPlinth extends TileEntitySpecialRenderer
|
|||
if (ghostEntityItem.getEntityItem().getItem() instanceof ItemBlock)
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + displacement + 0.7F, (float) d2 + 0.5F);
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + displacement + 10.4f / 16.0f, (float) d2 + 0.5F - 0.1875f);
|
||||
}
|
||||
|
@ -121,8 +117,7 @@ public class RenderPlinth extends TileEntitySpecialRenderer
|
|||
default:
|
||||
return 0.90F * scaleFactor / 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (customRenderItem.getMiniItemCount(itemStack))
|
||||
{
|
||||
|
@ -201,8 +196,7 @@ public class RenderPlinth extends TileEntitySpecialRenderer
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (forgeDirection)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelWritingTable;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
|
@ -10,15 +13,9 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelWritingTable;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
public class RenderWritingTable extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class RenderWritingTable extends TileEntitySpecialRenderer {
|
||||
private ModelWritingTable modelWritingTable = new ModelWritingTable();
|
||||
private final RenderItem customRenderItem;
|
||||
// private final RenderItem customRenderItem1;
|
||||
|
@ -29,8 +26,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
|
||||
public RenderWritingTable()
|
||||
{
|
||||
customRenderItem = new RenderItem()
|
||||
{
|
||||
customRenderItem = new RenderItem() {
|
||||
@Override
|
||||
public boolean shouldBob()
|
||||
{
|
||||
|
@ -39,6 +35,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
};
|
||||
customRenderItem.setRenderManager(RenderManager.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileEntity, double d0, double d1, double d2, float f)
|
||||
{
|
||||
|
@ -54,7 +51,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
|
||||
//A reference to your Model file. Again, very important.
|
||||
this.modelWritingTable.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
this.modelWritingTable.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
//Tell it to stop rendering for both the PushMatrix's
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
|
@ -66,7 +63,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
if (tileAltar.getStackInSlot(i) != null)
|
||||
{
|
||||
float scaleFactor = getGhostItemScaleFactor(tileAltar.getStackInSlot(i));
|
||||
float rotationAngle = (float)(720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
|
||||
float rotationAngle = (float) (720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
|
||||
EntityItem ghostEntityItem = new EntityItem(tileAltar.worldObj);
|
||||
ghostEntityItem.hoverStart = 0.0F;
|
||||
ghostEntityItem.setEntityItemStack(tileAltar.getStackInSlot(i));
|
||||
|
@ -78,8 +75,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
if (ghostEntityItem.getEntityItem().getItem() instanceof ItemBlock)
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F + displacementX, (float) d1 + displacementY + 0.7F, (float) d2 + 0.5F + displacementZ);
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F + displacementX, (float) d1 + displacementY + 0.6F, (float) d2 + 0.5F + displacementZ);
|
||||
}
|
||||
|
@ -126,8 +122,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
default:
|
||||
return 0.90F * scaleFactor;
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (customRenderItem.getMiniItemCount(itemStack))
|
||||
{
|
||||
|
@ -278,8 +273,7 @@ public class RenderWritingTable extends TileEntitySpecialRenderer
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (forgeDirection)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelBloodAltar;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
|
@ -8,21 +10,15 @@ import net.minecraft.item.ItemBlock;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelBloodAltar;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
|
||||
public class TEAltarRenderer extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TEAltarRenderer extends TileEntitySpecialRenderer {
|
||||
private ModelBloodAltar modelBloodAltar = new ModelBloodAltar();
|
||||
private final RenderItem customRenderItem;
|
||||
|
||||
public TEAltarRenderer()
|
||||
{
|
||||
customRenderItem = new RenderItem()
|
||||
{
|
||||
customRenderItem = new RenderItem() {
|
||||
@Override
|
||||
public boolean shouldBob()
|
||||
{
|
||||
|
@ -35,8 +31,8 @@ public class TEAltarRenderer extends TileEntitySpecialRenderer
|
|||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileEntity, double d0, double d1, double d2, float f)
|
||||
{
|
||||
modelBloodAltar.renderBloodAltar((TEAltar)tileEntity, d0, d1, d2);
|
||||
modelBloodAltar.renderBloodLevel((TEAltar)tileEntity, d0, d1, d2);
|
||||
modelBloodAltar.renderBloodAltar((TEAltar) tileEntity, d0, d1, d2);
|
||||
modelBloodAltar.renderBloodLevel((TEAltar) tileEntity, d0, d1, d2);
|
||||
|
||||
if (tileEntity instanceof TEAltar)
|
||||
{
|
||||
|
@ -51,7 +47,7 @@ public class TEAltarRenderer extends TileEntitySpecialRenderer
|
|||
if (tileAltar.getStackInSlot(0) != null)
|
||||
{
|
||||
float scaleFactor = getGhostItemScaleFactor(tileAltar.getStackInSlot(0));
|
||||
float rotationAngle = (float)(720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
|
||||
float rotationAngle = (float) (720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
|
||||
EntityItem ghostEntityItem = new EntityItem(tileAltar.worldObj);
|
||||
ghostEntityItem.hoverStart = 0.0F;
|
||||
ghostEntityItem.setEntityItemStack(tileAltar.getStackInSlot(0));
|
||||
|
@ -61,8 +57,7 @@ public class TEAltarRenderer extends TileEntitySpecialRenderer
|
|||
if (ghostEntityItem.getEntityItem().getItem() instanceof ItemBlock)
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + displacement + 0.7F, (float) d2 + 0.5F);
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + displacement + 0.6F, (float) d2 + 0.5F);
|
||||
}
|
||||
|
@ -107,8 +102,7 @@ public class TEAltarRenderer extends TileEntitySpecialRenderer
|
|||
default:
|
||||
return 0.90F;
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (customRenderItem.getMiniItemCount(itemStack))
|
||||
{
|
||||
|
@ -187,8 +181,7 @@ public class TEAltarRenderer extends TileEntitySpecialRenderer
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
switch (forgeDirection)
|
||||
{
|
||||
|
|
|
@ -1,22 +1,20 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block.itemRender;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelBloodAltar;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class TEAltarItemRenderer implements IItemRenderer
|
||||
{
|
||||
public class TEAltarItemRenderer implements IItemRenderer {
|
||||
private ModelBloodAltar modelBloodAltar;
|
||||
|
||||
public TEAltarItemRenderer()
|
||||
{
|
||||
modelBloodAltar = new ModelBloodAltar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleRenderType(ItemStack item, ItemRenderType type)
|
||||
{
|
||||
|
@ -67,7 +65,7 @@ public class TEAltarItemRenderer implements IItemRenderer
|
|||
GL11.glPushMatrix();
|
||||
// Disable Lighting Calculations
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glTranslatef(x, y, z);
|
||||
GL11.glTranslatef(x, y, z);
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
//FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/OBJTutorial/textures/models/TutBox.png");
|
||||
|
|
|
@ -1,23 +1,21 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.block.itemRender;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelWritingTable;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelWritingTable;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
public class TEWritingTableItemRenderer implements IItemRenderer
|
||||
{
|
||||
public class TEWritingTableItemRenderer implements IItemRenderer {
|
||||
private ModelWritingTable modelBloodAltar;
|
||||
|
||||
public TEWritingTableItemRenderer()
|
||||
{
|
||||
modelBloodAltar = new ModelWritingTable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleRenderType(ItemStack item, ItemRenderType type)
|
||||
{
|
||||
|
@ -68,14 +66,14 @@ public class TEWritingTableItemRenderer implements IItemRenderer
|
|||
GL11.glPushMatrix();
|
||||
// Disable Lighting Calculations
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glTranslatef(x, y, z);
|
||||
GL11.glTranslatef(x, y, z);
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
GL11.glRotatef(180f, 0f, 1f, 0f);
|
||||
//FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/OBJTutorial/textures/models/TutBox.png");
|
||||
ResourceLocation test = new ResourceLocation("alchemicalwizardry:textures/models/WritingTable.png");
|
||||
//FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/alchemicalwizardry/textures/models/altar.png");
|
||||
FMLClientHandler.instance().getClient().renderEngine.bindTexture(test);
|
||||
modelBloodAltar.render((Entity)null, 0, 0, 0, 0, 0, 0);
|
||||
modelBloodAltar.render((Entity) null, 0, 0, 0, 0, 0, 0);
|
||||
// Re-enable Lighting Calculations
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glPopMatrix();
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityBileDemon;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityBileDemon;
|
||||
|
||||
public class RenderBileDemon extends RenderLiving
|
||||
{
|
||||
public class RenderBileDemon extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/BileDemon.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderBileDemon(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderBileDemon extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityBileDemon)par1Entity);
|
||||
return this.func_110832_a((EntityBileDemon) par1Entity);
|
||||
}
|
||||
}
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityBoulderFist;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityBoulderFist;
|
||||
|
||||
public class RenderBoulderFist extends RenderLiving
|
||||
{
|
||||
public class RenderBoulderFist extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/BoulderFist.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderBoulderFist(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderBoulderFist extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityBoulderFist)par1Entity);
|
||||
return this.func_110832_a((EntityBoulderFist) par1Entity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.EntityAirElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.*;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.EntityAirElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityEarthElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityFireElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityHolyElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityShadeElemental;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityWaterElemental;
|
||||
|
||||
public class RenderElemental extends RenderLiving
|
||||
{
|
||||
public class RenderElemental extends RenderLiving {
|
||||
private static final ResourceLocation airBeacon = new ResourceLocation("alchemicalwizardry", "textures/models/AirFloatingBeacon.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
private static final ResourceLocation waterBeacon = new ResourceLocation("alchemicalwizardry", "textures/models/WaterFloatingBeacon.png");
|
||||
private static final ResourceLocation earthBeacon = new ResourceLocation("alchemicalwizardry", "textures/models/EarthFloatingBeacon.png");
|
||||
|
@ -63,6 +57,6 @@ public class RenderElemental extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityElemental)par1Entity);
|
||||
return this.func_110832_a((EntityElemental) par1Entity);
|
||||
}
|
||||
}
|
|
@ -1,16 +1,15 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityFallenAngel;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityFallenAngel;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class RenderFallenAngel extends RenderLiving
|
||||
{
|
||||
public class RenderFallenAngel extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/WingedAngel.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderFallenAngel(ModelBase par1ModelBase, float par2)
|
||||
|
@ -25,6 +24,6 @@ public class RenderFallenAngel extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityFallenAngel)par1Entity);
|
||||
return this.func_110832_a((EntityFallenAngel) par1Entity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityIceDemon;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityIceDemon;
|
||||
|
||||
public class RenderIceDemon extends RenderLiving
|
||||
{
|
||||
public class RenderIceDemon extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/IceDemon.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderIceDemon(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderIceDemon extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityIceDemon)par1Entity);
|
||||
return this.func_110832_a((EntityIceDemon) par1Entity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityLowerGuardian;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityLowerGuardian;
|
||||
|
||||
public class RenderLowerGuardian extends RenderLiving
|
||||
{
|
||||
public class RenderLowerGuardian extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/LowerGuardian.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderLowerGuardian(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderLowerGuardian extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityLowerGuardian)par1Entity);
|
||||
return this.func_110832_a((EntityLowerGuardian) par1Entity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityShade;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityShade;
|
||||
|
||||
public class RenderShade extends RenderLiving
|
||||
{
|
||||
public class RenderShade extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/ShadeMob.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderShade(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderShade extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityShade)par1Entity);
|
||||
return this.func_110832_a((EntityShade) par1Entity);
|
||||
}
|
||||
}
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntitySmallEarthGolem;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntitySmallEarthGolem;
|
||||
|
||||
public class RenderSmallEarthGolem extends RenderLiving
|
||||
{
|
||||
public class RenderSmallEarthGolem extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/SmallEarthGolem.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderSmallEarthGolem(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderSmallEarthGolem extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntitySmallEarthGolem)par1Entity);
|
||||
return this.func_110832_a((EntitySmallEarthGolem) par1Entity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityWingedFireDemon;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityWingedFireDemon;
|
||||
|
||||
public class RenderWingedFireDemon extends RenderLiving
|
||||
{
|
||||
public class RenderWingedFireDemon extends RenderLiving {
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/WingedFireDemon.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
|
||||
public RenderWingedFireDemon(ModelBase par1ModelBase, float par2)
|
||||
|
@ -22,6 +21,6 @@ public class RenderWingedFireDemon extends RenderLiving
|
|||
|
||||
public ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110832_a((EntityWingedFireDemon)par1Entity);
|
||||
return this.func_110832_a((EntityWingedFireDemon) par1Entity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.model;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ModelBileDemon extends ModelBase
|
||||
{
|
||||
public class ModelBileDemon extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer belly;
|
||||
ModelRenderer chest;
|
||||
|
@ -158,11 +156,11 @@ public class ModelBileDemon extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.3662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.3662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.leftArm.rotateAngleX = MathHelper.cos(f * 0.3662F) * 1.0F * f1;
|
||||
this.rightArmSpacer.rotateAngleX = MathHelper.cos(f * 0.3662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.rightArmSpacer.rotateAngleX = MathHelper.cos(f * 0.3662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.leftArmSpacer.rotateAngleX = MathHelper.cos(f * 0.3662F) * 1.0F * f1;
|
||||
this.leftBall.rotateAngleX = this.head.rotateAngleX;
|
||||
this.leftBall.rotateAngleY = this.head.rotateAngleY;
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.model;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
public class ModelBloodAltar extends ModelBase
|
||||
{
|
||||
public class ModelBloodAltar extends ModelBase {
|
||||
private IModelCustom modelBloodAltar;
|
||||
private IModelCustom modelBloodLevel; //TODO
|
||||
|
||||
|
@ -37,7 +34,7 @@ public class ModelBloodAltar extends ModelBase
|
|||
// Push a blank matrix onto the stack
|
||||
GL11.glPushMatrix();
|
||||
// Move the object into the correct position on the block (because the OBJ's origin is the center of the object)
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y , (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y, (float) z + 0.5f);
|
||||
// Scale our object to about half-size in all directions (the OBJ file is a little large)
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
// Bind the texture, so that OpenGL properly textures our block.
|
||||
|
@ -57,7 +54,7 @@ public class ModelBloodAltar extends ModelBase
|
|||
GL11.glPushMatrix();
|
||||
float level = altar.getFluidAmount();
|
||||
// Move the object into the correct position on the block (because the OBJ's origin is the center of the object)
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y + 0.6499f + 0.12f * (level / altar.getCapacity()), (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y + 0.6499f + 0.12f * (level / altar.getCapacity()), (float) z + 0.5f);
|
||||
// Scale our object to about half-size in all directions (the OBJ file is a little large)
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
// Bind the texture, so that OpenGL properly textures our block.
|
||||
|
|
|
@ -5,8 +5,7 @@ import net.minecraft.client.model.ModelRenderer;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ModelBoulderFist extends ModelBase
|
||||
{
|
||||
public class ModelBoulderFist extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer leftFist;
|
||||
ModelRenderer leftArm;
|
||||
|
@ -48,13 +47,13 @@ public class ModelBoulderFist extends ModelBase
|
|||
leftLeg1.setRotationPoint(5F, 11F, 7F);
|
||||
leftLeg1.setTextureSize(64, 64);
|
||||
leftLeg1.mirror = true;
|
||||
setRotation(leftLeg1, -((float)Math.PI / 4F), 0F, 0F);
|
||||
setRotation(leftLeg1, -((float) Math.PI / 4F), 0F, 0F);
|
||||
leftLeg2 = new ModelRenderer(this, 1, 25);
|
||||
leftLeg2.addBox(0F, 5F, -1F, 4, 2, 12);
|
||||
leftLeg2.setRotationPoint(5F, 11F, 7F);
|
||||
leftLeg2.setTextureSize(64, 64);
|
||||
leftLeg2.mirror = true;
|
||||
setRotation(leftLeg2, -((float)Math.PI / 4F), 0F, 0F);
|
||||
setRotation(leftLeg2, -((float) Math.PI / 4F), 0F, 0F);
|
||||
leftFoot = new ModelRenderer(this, 22, 25);
|
||||
leftFoot.addBox(0F, 11F, -1F, 4, 2, 5);
|
||||
leftFoot.setRotationPoint(5F, 11F, 7F);
|
||||
|
@ -83,7 +82,7 @@ public class ModelBoulderFist extends ModelBase
|
|||
rightLeg1.setRotationPoint(-5F, 11F, 7F);
|
||||
rightLeg1.setTextureSize(64, 64);
|
||||
rightLeg1.mirror = true;
|
||||
setRotation(rightLeg1, -((float)Math.PI / 4F), 0F, 0F);
|
||||
setRotation(rightLeg1, -((float) Math.PI / 4F), 0F, 0F);
|
||||
rightLeg1.mirror = false;
|
||||
rightLeg2 = new ModelRenderer(this, 1, 25);
|
||||
rightLeg2.mirror = true;
|
||||
|
@ -91,7 +90,7 @@ public class ModelBoulderFist extends ModelBase
|
|||
rightLeg2.setRotationPoint(-5F, 11F, 7F);
|
||||
rightLeg2.setTextureSize(64, 64);
|
||||
rightLeg2.mirror = true;
|
||||
setRotation(rightLeg2, -((float)Math.PI / 4F), 0F, 0F);
|
||||
setRotation(rightLeg2, -((float) Math.PI / 4F), 0F, 0F);
|
||||
rightLeg2.mirror = false;
|
||||
rightFoot = new ModelRenderer(this, 22, 25);
|
||||
rightFoot.mirror = true;
|
||||
|
@ -137,15 +136,15 @@ public class ModelBoulderFist extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.leftFoot.rotateAngleX = MathHelper.cos(f * 0.6662F) * 0.8F * f1;
|
||||
this.rightFoot.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 0.8F * f1;
|
||||
this.leftLeg1.rotateAngleX = leftFoot.rotateAngleX - ((float)Math.PI / 4F);
|
||||
this.rightLeg1.rotateAngleX = rightFoot.rotateAngleX - ((float)Math.PI / 4F);
|
||||
this.leftLeg2.rotateAngleX = leftFoot.rotateAngleX - ((float)Math.PI / 4F);
|
||||
this.rightLeg2.rotateAngleX = rightFoot.rotateAngleX - ((float)Math.PI / 4F);
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 0.9f * f1;
|
||||
this.rightFoot.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 0.8F * f1;
|
||||
this.leftLeg1.rotateAngleX = leftFoot.rotateAngleX - ((float) Math.PI / 4F);
|
||||
this.rightLeg1.rotateAngleX = rightFoot.rotateAngleX - ((float) Math.PI / 4F);
|
||||
this.leftLeg2.rotateAngleX = leftFoot.rotateAngleX - ((float) Math.PI / 4F);
|
||||
this.rightLeg2.rotateAngleX = rightFoot.rotateAngleX - ((float) Math.PI / 4F);
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 0.9f * f1;
|
||||
this.leftArm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 0.9f * f1;
|
||||
this.leftFist.rotateAngleX = leftArm.rotateAngleX;
|
||||
this.rightFist.rotateAngleX = rightArm.rotateAngleX;
|
||||
|
|
|
@ -11,9 +11,8 @@ import net.minecraft.client.model.ModelRenderer;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
public class ModelConduit extends ModelBase
|
||||
{
|
||||
//fields
|
||||
public class ModelConduit extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer curvedInput;
|
||||
ModelRenderer curvedOutput;
|
||||
ModelRenderer straightBar1;
|
||||
|
@ -168,30 +167,30 @@ public class ModelConduit extends ModelBase
|
|||
|
||||
case EAST:
|
||||
xInputRot = 0.0f;
|
||||
yInputRot = (float)(0.5f * Math.PI);
|
||||
yInputRot = (float) (0.5f * Math.PI);
|
||||
zInputRot = 0.0f;
|
||||
break;
|
||||
|
||||
case SOUTH:
|
||||
xInputRot = 0.0f;
|
||||
yInputRot = (float)(1.0f * Math.PI);
|
||||
yInputRot = (float) (1.0f * Math.PI);
|
||||
zInputRot = 0.0f;
|
||||
break;
|
||||
|
||||
case WEST:
|
||||
xInputRot = 0.0f;
|
||||
yInputRot = (float)(-0.5f * Math.PI);
|
||||
yInputRot = (float) (-0.5f * Math.PI);
|
||||
zInputRot = 0.0f;
|
||||
break;
|
||||
|
||||
case UP:
|
||||
xInputRot = (float)(-0.5f * Math.PI);
|
||||
xInputRot = (float) (-0.5f * Math.PI);
|
||||
yInputRot = 0.0f;
|
||||
zInputRot = 0.0f;
|
||||
break;
|
||||
|
||||
case DOWN:
|
||||
xInputRot = (float)(0.5f * Math.PI);
|
||||
xInputRot = (float) (0.5f * Math.PI);
|
||||
yInputRot = 0.0f;
|
||||
zInputRot = 0.0f;
|
||||
break;
|
||||
|
@ -204,19 +203,19 @@ public class ModelConduit extends ModelBase
|
|||
{
|
||||
case NORTH:
|
||||
xOutputRot = 0.0f;
|
||||
yOutputRot = (float)(0.5f * Math.PI);
|
||||
yOutputRot = (float) (0.5f * Math.PI);
|
||||
zOutputRot = 0.0f;
|
||||
break;
|
||||
|
||||
case EAST:
|
||||
xOutputRot = 0.0f;
|
||||
yOutputRot = (float)(1.0f * Math.PI);
|
||||
yOutputRot = (float) (1.0f * Math.PI);
|
||||
zOutputRot = 0.0f;
|
||||
break;
|
||||
|
||||
case SOUTH:
|
||||
xOutputRot = 0.0f;
|
||||
yOutputRot = (float)(-0.5f * Math.PI);
|
||||
yOutputRot = (float) (-0.5f * Math.PI);
|
||||
zOutputRot = 0.0f;
|
||||
break;
|
||||
|
||||
|
@ -229,13 +228,13 @@ public class ModelConduit extends ModelBase
|
|||
case UP:
|
||||
xOutputRot = 0.0f;
|
||||
yOutputRot = 0.0f;
|
||||
zOutputRot = (float)(-0.5f * Math.PI);
|
||||
zOutputRot = (float) (-0.5f * Math.PI);
|
||||
break;
|
||||
|
||||
case DOWN:
|
||||
xOutputRot = 0.0f;
|
||||
yOutputRot = 0.0f;
|
||||
zOutputRot = (float)(0.5f * Math.PI);
|
||||
zOutputRot = (float) (0.5f * Math.PI);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -6,8 +6,7 @@ import net.minecraft.entity.Entity;
|
|||
import net.minecraft.entity.monster.EntityBlaze;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ModelElemental extends ModelBase
|
||||
{
|
||||
public class ModelElemental extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer body;
|
||||
ModelRenderer Shape2;
|
||||
|
@ -29,19 +28,19 @@ public class ModelElemental extends ModelBase
|
|||
Shape2.setRotationPoint(0F, 14F, 0F);
|
||||
Shape2.setTextureSize(64, 32);
|
||||
Shape2.mirror = true;
|
||||
setRotation(Shape2, ((float)Math.PI / 4F), ((float)Math.PI / 4F), 0F);
|
||||
setRotation(Shape2, ((float) Math.PI / 4F), ((float) Math.PI / 4F), 0F);
|
||||
Shape1 = new ModelRenderer(this, 0, 0);
|
||||
Shape1.addBox(-4F, -4F, -4F, 8, 8, 8);
|
||||
Shape1.setRotationPoint(0F, 14F, 0F);
|
||||
Shape1.setTextureSize(64, 32);
|
||||
Shape1.mirror = true;
|
||||
setRotation(Shape1, 0F, ((float)Math.PI / 4F), ((float)Math.PI / 4F));
|
||||
setRotation(Shape1, 0F, ((float) Math.PI / 4F), ((float) Math.PI / 4F));
|
||||
Shape3 = new ModelRenderer(this, 0, 0);
|
||||
Shape3.addBox(-4F, -4F, -4F, 8, 8, 8);
|
||||
Shape3.setRotationPoint(0F, 14F, 0F);
|
||||
Shape3.setTextureSize(64, 32);
|
||||
Shape3.mirror = true;
|
||||
setRotation(Shape3, ((float)Math.PI / 4F), 0F, ((float)Math.PI / 4F));
|
||||
setRotation(Shape3, ((float) Math.PI / 4F), 0F, ((float) Math.PI / 4F));
|
||||
}
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
|
|
|
@ -4,8 +4,7 @@ import net.minecraft.client.model.ModelBase;
|
|||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelEnergyBazookaMainProjectile extends ModelBase
|
||||
{
|
||||
public class ModelEnergyBazookaMainProjectile extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer thirdWarHead;
|
||||
ModelRenderer firstWarHead;
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.model;
|
||||
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class ModelFallenAngel extends ModelBase
|
||||
{
|
||||
public class ModelFallenAngel extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer leftWing;
|
||||
ModelRenderer rightWing;
|
||||
|
@ -103,13 +100,13 @@ public class ModelFallenAngel extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.leftleg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;
|
||||
this.rightarm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;
|
||||
this.rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
|
||||
this.rightarm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
|
||||
this.leftarm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.rightWing.rotateAngleY = MathHelper.cos(0.1662F);
|
||||
this.leftWing.rotateAngleY = MathHelper.cos(0.1662F + (float)Math.PI);
|
||||
this.leftWing.rotateAngleY = MathHelper.cos(0.1662F + (float) Math.PI);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@ import net.minecraft.client.model.ModelRenderer;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ModelIceDemon extends ModelBase
|
||||
{
|
||||
public class ModelIceDemon extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer head;
|
||||
ModelRenderer leftHorn;
|
||||
|
@ -175,11 +174,11 @@ public class ModelIceDemon extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.leftLeg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
|
||||
this.leftArm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.leftHorn.rotateAngleX = head.rotateAngleX + 0.4363323F;
|
||||
this.leftHorn.rotateAngleY = head.rotateAngleY;
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.model;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityLowerGuardian;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import WayofTime.alchemicalWizardry.common.entity.mob.EntityLowerGuardian;
|
||||
|
||||
public class ModelLowerGuardian extends ModelBase
|
||||
{
|
||||
public class ModelLowerGuardian extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer Body;
|
||||
ModelRenderer Torso;
|
||||
|
@ -164,13 +163,13 @@ public class ModelLowerGuardian extends ModelBase
|
|||
|
||||
public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
|
||||
{
|
||||
EntityLowerGuardian entityLowerGuardian = (EntityLowerGuardian)par1EntityLivingBase;
|
||||
EntityLowerGuardian entityLowerGuardian = (EntityLowerGuardian) par1EntityLivingBase;
|
||||
int i = entityLowerGuardian.getAttackTimer();
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
this.rightLeg.rotateAngleX = -2.0F + 1.5F * this.func_78172_a((float)i - par4, 10.0F);
|
||||
this.rightFoot.rotateAngleX = -2.0F + 1.5F * this.func_78172_a((float)i - par4, 10.0F);
|
||||
this.rightLeg.rotateAngleX = -2.0F + 1.5F * this.func_78172_a((float) i - par4, 10.0F);
|
||||
this.rightFoot.rotateAngleX = -2.0F + 1.5F * this.func_78172_a((float) i - par4, 10.0F);
|
||||
//this.ironGolemLeftArm.rotateAngleX = -2.0F + 1.5F * this.func_78172_a((float)i - par4, 10.0F);
|
||||
}
|
||||
}
|
||||
|
@ -183,13 +182,13 @@ public class ModelLowerGuardian extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.Head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.Head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.Head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.Head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.leftLeg.rotateAngleX = MathHelper.cos(f * 0.3662F) * 1.0F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.3662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.3662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.leftFoot.rotateAngleX = MathHelper.cos(f * 0.3662F) * 1.0F * f1;
|
||||
this.rightFoot.rotateAngleX = MathHelper.cos(f * 0.3662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.3662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.rightFoot.rotateAngleX = MathHelper.cos(f * 0.3662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.3662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.leftArm.rotateAngleX = MathHelper.cos(f * 0.3662F) * 1.0F * f1;
|
||||
this.hornAppendage1.rotateAngleX = this.Head.rotateAngleX;
|
||||
this.hornAppendage1.rotateAngleY = this.Head.rotateAngleY;
|
||||
|
|
|
@ -4,9 +4,8 @@ import net.minecraft.client.model.ModelBase;
|
|||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelMeteor extends ModelBase
|
||||
{
|
||||
//fields
|
||||
public class ModelMeteor extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer Shape1;
|
||||
ModelRenderer Shape2;
|
||||
ModelRenderer Shape3;
|
||||
|
|
|
@ -4,8 +4,7 @@ import net.minecraft.client.model.ModelBase;
|
|||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelPedestal extends ModelBase
|
||||
{
|
||||
public class ModelPedestal extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer base;
|
||||
ModelRenderer top;
|
||||
|
|
|
@ -4,8 +4,7 @@ import net.minecraft.client.model.ModelBase;
|
|||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelPlinth extends ModelBase
|
||||
{
|
||||
public class ModelPlinth extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer base;
|
||||
ModelRenderer table;
|
||||
|
|
|
@ -4,8 +4,7 @@ import net.minecraft.client.model.ModelBase;
|
|||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelShade extends ModelBase
|
||||
{
|
||||
public class ModelShade extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer body;
|
||||
ModelRenderer tail1;
|
||||
|
@ -80,7 +79,7 @@ public class ModelShade extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@ import net.minecraft.client.model.ModelRenderer;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ModelSmallEarthGolem extends ModelBase
|
||||
{
|
||||
public class ModelSmallEarthGolem extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer leftLeg;
|
||||
ModelRenderer rightLeg;
|
||||
|
@ -117,11 +116,11 @@ public class ModelSmallEarthGolem extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.leftLeg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
|
||||
this.leftArm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
}
|
||||
}
|
|
@ -5,8 +5,7 @@ import net.minecraft.client.model.ModelRenderer;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ModelWingedFireDemon extends ModelBase
|
||||
{
|
||||
public class ModelWingedFireDemon extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer leftLegPlate;
|
||||
ModelRenderer leftLeg;
|
||||
|
@ -183,8 +182,8 @@ public class ModelWingedFireDemon extends ModelBase
|
|||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
|
||||
this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
|
||||
this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
|
||||
this.leftHorn1.rotateAngleX = head.rotateAngleX;
|
||||
this.leftHorn1.rotateAngleY = head.rotateAngleY;
|
||||
this.leftHorn2.rotateAngleX = head.rotateAngleX;
|
||||
|
@ -194,8 +193,8 @@ public class ModelWingedFireDemon extends ModelBase
|
|||
this.rightHorn2.rotateAngleX = head.rotateAngleX;
|
||||
this.rightHorn2.rotateAngleY = head.rotateAngleY;
|
||||
this.leftLeg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.0F * f1;
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.rightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.0F * f1;
|
||||
this.leftArm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
|
||||
this.leftShoulder.rotateAngleX = this.leftArm.rotateAngleX;
|
||||
this.rightShoulder.rotateAngleX = this.rightArm.rotateAngleX;
|
||||
|
|
|
@ -4,8 +4,7 @@ import net.minecraft.client.model.ModelBase;
|
|||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelWritingTable extends ModelBase
|
||||
{
|
||||
public class ModelWritingTable extends ModelBase {
|
||||
//fields
|
||||
ModelRenderer base;
|
||||
ModelRenderer support;
|
||||
|
@ -48,7 +47,7 @@ public class ModelWritingTable extends ModelBase
|
|||
appendage2.setRotationPoint(0F, 10F, 0F);
|
||||
appendage2.setTextureSize(64, 32);
|
||||
appendage2.mirror = true;
|
||||
setRotation(appendage2, 0F, ((float)Math.PI * 2F / 5F), 0F);
|
||||
setRotation(appendage2, 0F, ((float) Math.PI * 2F / 5F), 0F);
|
||||
appendage3 = new ModelRenderer(this, 48, 0);
|
||||
appendage3.addBox(1F, 0F, 0F, 7, 11, 0);
|
||||
appendage3.setRotationPoint(0F, 10F, 0F);
|
||||
|
@ -66,7 +65,7 @@ public class ModelWritingTable extends ModelBase
|
|||
appendage5.setRotationPoint(0F, 10F, 0F);
|
||||
appendage5.setTextureSize(64, 32);
|
||||
appendage5.mirror = true;
|
||||
setRotation(appendage5, 0F, -((float)Math.PI * 2F / 5F), 0F);
|
||||
setRotation(appendage5, 0F, -((float) Math.PI * 2F / 5F), 0F);
|
||||
outputPad = new ModelRenderer(this, 0, 20);
|
||||
outputPad.addBox(0F, 0F, 0F, 4, 1, 4);
|
||||
outputPad.setRotationPoint(-2F, 9F, -2F);
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.projectile;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelEnergyBazookaMainProjectile;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelEnergyBazookaMainProjectile;
|
||||
|
||||
public class RenderEnergyBazookaMainProjectile extends Render
|
||||
{
|
||||
public class RenderEnergyBazookaMainProjectile extends Render {
|
||||
public ModelBase model = new ModelEnergyBazookaMainProjectile();
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/EnergyBazookaMainProjectile.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
private float scale = 1.0f;
|
||||
|
@ -20,13 +17,13 @@ public class RenderEnergyBazookaMainProjectile extends Render
|
|||
public void doRender(Entity entity, double d0, double d1, double d2, float f, float f1)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)d0, (float)d1, (float)d2);
|
||||
GL11.glTranslatef((float) d0, (float) d1, (float) d2);
|
||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
this.bindTexture(this.getEntityTexture(entity));
|
||||
GL11.glRotatef(entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * f1, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(180.0f - entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * f1, 1.0F, 0.0F, 0.0f);
|
||||
model.render(entity, 0, (float)d0, (float)d1, (float) d2, f, f1);
|
||||
model.render(entity, 0, (float) d0, (float) d1, (float) d2, f, f1);
|
||||
//GL11.glRotatef(entity.getRotationYawHead(), 0.0F, 1.0F, 0.0F);
|
||||
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glPopMatrix();
|
||||
|
|
|
@ -1,32 +1,21 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.projectile;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.*;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.EnergyBlastProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.ExplosionProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.FireProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.HolyProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.IceProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.LightningBoltProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.MudProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.WaterProjectile;
|
||||
import WayofTime.alchemicalWizardry.common.entity.projectile.WindGustProjectile;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class RenderEnergyBlastProjectile extends Render
|
||||
{
|
||||
public class RenderEnergyBlastProjectile extends Render {
|
||||
public void doRenderEnergyBlastProjectile(EnergyBlastProjectile entityShot, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)par2, (float)par4, (float)par6);
|
||||
GL11.glTranslatef((float) par2, (float) par4, (float) par6);
|
||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glScalef(0.1F, 0.1F, 0.1F);
|
||||
this.bindTexture(this.getEntityTexture(entityShot));
|
||||
|
@ -49,7 +38,7 @@ public class RenderEnergyBlastProjectile extends Render
|
|||
{
|
||||
if (par1Entity instanceof EnergyBlastProjectile)
|
||||
{
|
||||
this.doRenderEnergyBlastProjectile((EnergyBlastProjectile)par1Entity, par2, par4, par6, par8, par9);
|
||||
this.doRenderEnergyBlastProjectile((EnergyBlastProjectile) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,19 +1,10 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.projectile;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class RenderFireProjectile
|
||||
{
|
||||
public class RenderFireProjectile {
|
||||
// public void doRenderProjectile(FireProjectile entityShot, double par2, double par4, double par6, float par8, float par9)
|
||||
// {
|
||||
// GL11.glPushMatrix();
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
package WayofTime.alchemicalWizardry.common.renderer.projectile;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelMeteor;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.renderer.model.ModelMeteor;
|
||||
|
||||
public class RenderMeteor extends Render
|
||||
{
|
||||
public class RenderMeteor extends Render {
|
||||
public ModelBase model = new ModelMeteor();
|
||||
private static final ResourceLocation field_110833_a = new ResourceLocation("alchemicalwizardry", "textures/models/Meteor.png"); //refers to:YourMod/modelsTextureFile/optionalFile/yourTexture.png
|
||||
private float scale = 1.0f;
|
||||
|
@ -20,13 +17,13 @@ public class RenderMeteor extends Render
|
|||
public void doRender(Entity entity, double d0, double d1, double d2, float f, float f1)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)d0, (float)d1, (float)d2);
|
||||
GL11.glTranslatef((float) d0, (float) d1, (float) d2);
|
||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
this.bindTexture(this.getEntityTexture(entity));
|
||||
GL11.glRotatef(entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * f1, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(180.0f - entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * f1, 1.0F, 0.0F, 0.0f);
|
||||
model.render(entity, 0, (float)d0, (float)d1, (float) d2, f, f1);
|
||||
model.render(entity, 0, (float) d0, (float) d1, (float) d2, f, f1);
|
||||
//GL11.glRotatef(entity.getRotationYawHead(), 0.0F, 1.0F, 0.0F);
|
||||
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glPopMatrix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue