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,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue