mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Reorganize folders for modules
This commit is contained in:
1 parent
2c14f315de
commit
e2f0558b6f
370 files changed
+4274
-4788
No files matched your search
@@ -1,144 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import tconstruct.entity.CartEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class CartRender extends Render
|
||||
{
|
||||
protected ModelBase modelCart;
|
||||
RenderBlocks renderblocks;
|
||||
|
||||
public CartRender()
|
||||
{
|
||||
this.shadowSize = 0.5F;
|
||||
this.modelCart = new ModelPullcart();
|
||||
renderblocks = new RenderBlocks();
|
||||
}
|
||||
|
||||
public void renderPullcart (CartEntity cart, double posX, double posY, double posZ, float par8, float par9)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
long var10 = (long) cart.hashCode() * 493286711L;
|
||||
var10 = var10 * var10 * 4392167121L + var10 * 98761L;
|
||||
float var12 = (((float) (var10 >> 16 & 7L) + 0.5F) / 8.0F - 0.5F) * 0.004F;
|
||||
float var13 = (((float) (var10 >> 20 & 7L) + 0.5F) / 8.0F - 0.5F) * 0.004F;
|
||||
float var14 = (((float) (var10 >> 24 & 7L) + 0.5F) / 8.0F - 0.5F) * 0.004F;
|
||||
GL11.glTranslatef(var12, var13, var14);
|
||||
double var15 = cart.lastTickPosX + (cart.posX - cart.lastTickPosX) * (double) par9;
|
||||
double var17 = cart.lastTickPosY + (cart.posY - cart.lastTickPosY) * (double) par9;
|
||||
double var19 = cart.lastTickPosZ + (cart.posZ - cart.lastTickPosZ) * (double) par9;
|
||||
double var21 = 0.30000001192092896D;
|
||||
Vec3 var23 = cart.func_70489_a(var15, var17, var19);
|
||||
float var24 = cart.prevRotationPitch + (cart.rotationPitch - cart.prevRotationPitch) * par9;
|
||||
|
||||
if (var23 != null)
|
||||
{
|
||||
Vec3 var25 = cart.func_70495_a(var15, var17, var19, var21);
|
||||
Vec3 var26 = cart.func_70495_a(var15, var17, var19, -var21);
|
||||
|
||||
if (var25 == null)
|
||||
{
|
||||
var25 = var23;
|
||||
}
|
||||
|
||||
if (var26 == null)
|
||||
{
|
||||
var26 = var23;
|
||||
}
|
||||
|
||||
posX += var23.xCoord - var15;
|
||||
posY += (var25.yCoord + var26.yCoord) / 2.0D - var17;
|
||||
posZ += var23.zCoord - var19;
|
||||
Vec3 var27 = var26.addVector(-var25.xCoord, -var25.yCoord, -var25.zCoord);
|
||||
|
||||
if (var27.lengthVector() != 0.0D)
|
||||
{
|
||||
var27 = var27.normalize();
|
||||
par8 = (float) (Math.atan2(var27.zCoord, var27.xCoord) * 180.0D / Math.PI);
|
||||
var24 = (float) (Math.atan(var27.yCoord) * 73.0D);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glTranslatef((float) posX, (float) posY + 0.3125f, (float) posZ);
|
||||
GL11.glRotatef(180.0F - par8, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(-var24, 0.0F, 0.0F, 1.0F);
|
||||
float var28 = (float) cart.getRollingAmplitude() - par9;
|
||||
float var30 = (float) cart.getDamage() - par9;
|
||||
|
||||
if (var30 < 0.0F)
|
||||
{
|
||||
var30 = 0.0F;
|
||||
}
|
||||
|
||||
if (var28 > 0.0F)
|
||||
{
|
||||
GL11.glRotatef(MathHelper.sin(var28) * var28 * var30 / 10.0F * (float) cart.getRollingDirection(), 1.0F, 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
if (cart.getCartType() != 0)
|
||||
{
|
||||
// this.loadTexture("/terrain.png");
|
||||
float var29 = 0.75F;
|
||||
GL11.glScalef(var29, var29, var29);
|
||||
|
||||
if (cart.getCartType() == 1)
|
||||
{
|
||||
GL11.glTranslatef(0.0F, 0.5F, 0.0F);
|
||||
renderblocks.renderBlockAsItem(Blocks.chest, 0, cart.getBrightness(par9));
|
||||
GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(0.5F, 0.0F, -0.5F);
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
else if (cart.getCartType() == 2)
|
||||
{
|
||||
GL11.glTranslatef(0.0F, 0.3125F, 0.0F);
|
||||
renderblocks.renderBlockAsItem(Blocks.furnace, 0, cart.getBrightness(par9));
|
||||
GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(0.0F, -0.3125F, 0.0F);
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
// GL11.glScalef(1.0F / var29, 1.0F / var29, 1.0F / var29);
|
||||
}
|
||||
|
||||
// this.loadTexture("/tinkertextures/entity/pullcart.png");
|
||||
GL11.glScalef(-1.0F, -1.0F, 1.0F);
|
||||
this.modelCart.render(cart, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
/**
|
||||
* Actually renders the given argument. This is a synthetic bridge method,
|
||||
* always casting down its argument and then handing it off to a worker
|
||||
* function which does the actual work. In all probabilty, the class Render
|
||||
* is generic (Render<T extends Entity) and this method has signature public
|
||||
* void doRender(T entity, double d, double d1, double d2, float f, float
|
||||
* f1). But JAD is pre 1.5 so doesn't do that.
|
||||
*/
|
||||
@Override
|
||||
public void doRender (Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.renderPullcart((CartEntity) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
static final ResourceLocation texture = new ResourceLocation("assets/tinker/textures/mob/pullcart.png");
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
|
||||
public class CrystalModelSmall extends ModelBase
|
||||
{
|
||||
/*
|
||||
* ModelRenderer body; ModelRendererTurbo top; ModelRendererTurbo bottom;
|
||||
*
|
||||
* public CrystalModelSmall() { textureWidth = 32; textureHeight = 32;
|
||||
*
|
||||
* body = new ModelRenderer(this, 0, 8); body.addBox(-2F, 0F, -2F, 4, 6, 4);
|
||||
* body.setRotationPoint(0F, 0F, 0F); setRotation(body, 0, 0.7853982F, 0);
|
||||
* top = new ModelRendererTurbo(this, 0, 0, 32, 32); top.addCone(0, 0, 0,
|
||||
* 2.8F, 4, 4, 0, ModelRendererTurbo.MR_BOTTOM, 4, 8);
|
||||
* top.setRotationPoint(0F, -4F, 0F); setRotation(top, 0F, 0F, 0F); bottom =
|
||||
* new ModelRendererTurbo(this, 0, 18, 32, 32); top.addCone(0, 10, 0, 2.8F,
|
||||
* 4, 4, 0, ModelRendererTurbo.MR_TOP, 4, 8); bottom.setRotationPoint(0F,
|
||||
* 6F, 0F); //setRotation(bottom, 0F, 0F, 0F); }
|
||||
*
|
||||
* public void render (Entity entity, float f, float f1, float f2, float f3,
|
||||
* float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
* setRotationAngles(f, f1, f2, f3, f4, f5, entity); body.render(f5);
|
||||
* top.render(f5); bottom.render(f5); }
|
||||
*
|
||||
* private void setRotation (ModelRenderer model, float x, float y, float z)
|
||||
* { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z;
|
||||
* }
|
||||
*
|
||||
* 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); }
|
||||
*/
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import tconstruct.entity.Crystal;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class CrystalRender extends RenderLiving
|
||||
{
|
||||
/** The creeper model. */
|
||||
private ModelBase creeperModel = new CrystalModelSmall();
|
||||
|
||||
public CrystalRender()
|
||||
{
|
||||
super(new CrystalModelSmall(), 0.5F);
|
||||
}
|
||||
|
||||
/**
|
||||
* A method used to render a creeper's powered form as a pass model.
|
||||
*/
|
||||
protected int renderCreeperPassModel (Crystal par1EntityCreeper, int par2, float par3)
|
||||
{
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
protected int func_77061_b (Crystal par1EntityCreeper, int par2, float par3)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows the render to do any OpenGL state modifications necessary before
|
||||
* the model is rendered. Args: entityLiving, partialTickTime
|
||||
*/
|
||||
/*
|
||||
* protected void preRenderCallback(EntityLiving par1EntityLiving, float
|
||||
* par2) { this.updateCreeperScale((Skyla)par1EntityLiving, par2); }
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns an ARGB int color back. Args: entityLiving, lightBrightness,
|
||||
* partialTickTime
|
||||
*/
|
||||
protected int getColorMultiplier (EntityLiving par1EntityLiving, float par2, float par3)
|
||||
{
|
||||
return super.getColorMultiplier(par1EntityLiving, par2, par3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries whether should render the specified pass or not.
|
||||
*/
|
||||
protected int shouldRenderPass (EntityLiving par1EntityLiving, int par2, float par3)
|
||||
{
|
||||
return this.renderCreeperPassModel((Crystal) par1EntityLiving, par2, par3);
|
||||
}
|
||||
|
||||
protected int inheritRenderPass (EntityLiving par1EntityLiving, int par2, float par3)
|
||||
{
|
||||
return this.func_77061_b((Crystal) par1EntityLiving, par2, par3);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
static final ResourceLocation texture = new ResourceLocation("assets/tinker/textures/mob/crystalwater.png");
|
||||
}
|
||||
@@ -1,636 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.texture.TextureManager;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.ForgeHooksClient;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class FancyItemRender extends Render
|
||||
{
|
||||
private static final ResourceLocation field_110798_h = new ResourceLocation("textures/misc/enchanted_item_glint.png");
|
||||
private RenderBlocks itemRenderBlocks = new RenderBlocks();
|
||||
|
||||
/** The RNG used in RenderItem (for bobbing itemstacks on the ground) */
|
||||
private Random random = new Random();
|
||||
public boolean renderWithColor = true;
|
||||
|
||||
/** Defines the zLevel of rendering of item on GUI. */
|
||||
public float zLevel;
|
||||
public static boolean renderInFrame;
|
||||
|
||||
public FancyItemRender()
|
||||
{
|
||||
this.shadowSize = 0.15F;
|
||||
this.shadowOpaque = 0.75F;
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the item
|
||||
*/
|
||||
public void doRenderItem (EntityItem par1EntityItem, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.bindEntityTexture(par1EntityItem);
|
||||
this.random.setSeed(187L);
|
||||
ItemStack itemstack = par1EntityItem.getEntityItem();
|
||||
|
||||
if (itemstack.getItem() != null)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
float f2 = shouldBob() ? MathHelper.sin(((float) par1EntityItem.age + par9) / 10.0F + par1EntityItem.hoverStart) * 0.1F + 0.1F : 0F;
|
||||
float f3 = (((float) par1EntityItem.age + par9) / 20.0F + par1EntityItem.hoverStart) * (180F / (float) Math.PI);
|
||||
byte b0 = getMiniBlockCount(itemstack);
|
||||
|
||||
GL11.glTranslatef((float) par2, (float) par4 + f2, (float) par6);
|
||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
||||
float f4;
|
||||
float f5;
|
||||
float f6;
|
||||
int i;
|
||||
|
||||
Block block = null;
|
||||
|
||||
block = Block.getBlockFromItem(itemstack.getItem());
|
||||
|
||||
if (ForgeHooksClient.renderEntityItem(par1EntityItem, itemstack, f2, f3, random, renderManager.renderEngine, field_147909_c, 1))
|
||||
{
|
||||
;
|
||||
}
|
||||
else if (itemstack.getItemSpriteNumber() == 0 && block != null && RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemstack.getItem()).getRenderType()))
|
||||
{
|
||||
GL11.glRotatef(f3, 0.0F, 1.0F, 0.0F);
|
||||
|
||||
if (renderInFrame)
|
||||
{
|
||||
GL11.glScalef(1.25F, 1.25F, 1.25F);
|
||||
GL11.glTranslatef(0.0F, 0.05F, 0.0F);
|
||||
GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
|
||||
}
|
||||
|
||||
float f7 = 0.25F;
|
||||
int j = block.getRenderType();
|
||||
|
||||
if (j == 1 || j == 19 || j == 12 || j == 2)
|
||||
{
|
||||
f7 = 0.5F;
|
||||
}
|
||||
|
||||
GL11.glScalef(f7, f7, f7);
|
||||
|
||||
for (i = 0; i < b0; ++i)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
f5 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.2F / f7;
|
||||
f4 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.2F / f7;
|
||||
f6 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.2F / f7;
|
||||
GL11.glTranslatef(f5, f4, f6);
|
||||
}
|
||||
|
||||
f5 = 1.0F;
|
||||
this.itemRenderBlocks.renderBlockAsItem(block, itemstack.getItemDamage(), f5);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
float f8;
|
||||
|
||||
if (itemstack.getItemSpriteNumber() == 1 && itemstack.getItem().requiresMultipleRenderPasses())
|
||||
{
|
||||
if (renderInFrame)
|
||||
{
|
||||
GL11.glScalef(0.5128205F, 0.5128205F, 0.5128205F);
|
||||
GL11.glTranslatef(0.0F, -0.05F, 0.0F);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glScalef(0.5F, 0.5F, 0.5F);
|
||||
}
|
||||
|
||||
for (int k = 0; k < itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); ++k)
|
||||
{
|
||||
this.random.setSeed(187L);
|
||||
IIcon icon = itemstack.getItem().getIcon(itemstack, k);
|
||||
f8 = 1.0F;
|
||||
|
||||
if (this.renderWithColor)
|
||||
{
|
||||
i = itemstack.getItem().getColorFromItemStack(itemstack, k);
|
||||
f5 = (float) (i >> 16 & 255) / 255.0F;
|
||||
f4 = (float) (i >> 8 & 255) / 255.0F;
|
||||
f6 = (float) (i & 255) / 255.0F;
|
||||
GL11.glColor4f(f5 * f8, f4 * f8, f6 * f8, 1.0F);
|
||||
this.renderDroppedItem(par1EntityItem, icon, b0, par9, f5 * f8, f4 * f8, f6 * f8, k);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.renderDroppedItem(par1EntityItem, icon, b0, par9, 1.0F, 1.0F, 1.0F, k);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (renderInFrame)
|
||||
{
|
||||
GL11.glScalef(0.5128205F, 0.5128205F, 0.5128205F);
|
||||
GL11.glTranslatef(0.0F, -0.05F, 0.0F);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glScalef(0.5F, 0.5F, 0.5F);
|
||||
}
|
||||
|
||||
IIcon icon1 = itemstack.getIconIndex();
|
||||
|
||||
if (this.renderWithColor)
|
||||
{
|
||||
int l = itemstack.getItem().getColorFromItemStack(itemstack, 0);
|
||||
f8 = (float) (l >> 16 & 255) / 255.0F;
|
||||
float f9 = (float) (l >> 8 & 255) / 255.0F;
|
||||
f5 = (float) (l & 255) / 255.0F;
|
||||
f4 = 1.0F;
|
||||
this.renderDroppedItem(par1EntityItem, icon1, b0, par9, f8 * f4, f9 * f4, f5 * f4);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.renderDroppedItem(par1EntityItem, icon1, b0, par9, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110796_a (EntityItem par1EntityItem)
|
||||
{
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders a dropped item
|
||||
*/
|
||||
private void renderDroppedItem (EntityItem par1EntityItem, IIcon par2Icon, int par3, float par4, float par5, float par6, float par7)
|
||||
{
|
||||
renderDroppedItem(par1EntityItem, par2Icon, par3, par4, par5, par6, par7, 0);
|
||||
}
|
||||
|
||||
private void renderDroppedItem (EntityItem par1EntityItem, IIcon par2Icon, int par3, float par4, float par5, float par6, float par7, int pass)
|
||||
{
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
|
||||
if (par2Icon == null)
|
||||
{
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();
|
||||
ResourceLocation resourcelocation = texturemanager.getResourceLocation(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
float f4 = ((IIcon) par2Icon).getMinU();
|
||||
float f5 = ((IIcon) par2Icon).getMaxU();
|
||||
float f6 = ((IIcon) par2Icon).getMinV();
|
||||
float f7 = ((IIcon) par2Icon).getMaxV();
|
||||
float f8 = 1.0F;
|
||||
float f9 = 0.5F;
|
||||
float f10 = 0.25F;
|
||||
float f11;
|
||||
|
||||
GL11.glPushMatrix();
|
||||
|
||||
if (renderInFrame)
|
||||
{
|
||||
GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glRotatef((((float) par1EntityItem.age + par4) / 20.0F + par1EntityItem.hoverStart) * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);
|
||||
}
|
||||
|
||||
float f12 = 0.0625F;
|
||||
f11 = 0.021875F;
|
||||
ItemStack itemstack = par1EntityItem.getEntityItem();
|
||||
int j = itemstack.stackSize;
|
||||
byte b0 = getMiniItemCount(itemstack);
|
||||
|
||||
GL11.glTranslatef(-f9, -f10, -((f12 + f11) * (float) b0 / 2.0F));
|
||||
|
||||
for (int k = 0; k < b0; ++k)
|
||||
{
|
||||
// Makes items offset when in 3D, like when in 2D, looks much better. Considered a vanilla bug...
|
||||
if (k > 0 && shouldSpreadItems())
|
||||
{
|
||||
float x = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;
|
||||
float y = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;
|
||||
float z = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;
|
||||
GL11.glTranslatef(x, y, f12 + f11);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glTranslatef(0f, 0f, f12 + f11);
|
||||
}
|
||||
|
||||
if (itemstack.getItemSpriteNumber() == 0)
|
||||
{
|
||||
this.bindTexture(TextureMap.locationBlocksTexture);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.bindTexture(TextureMap.locationItemsTexture);
|
||||
}
|
||||
|
||||
GL11.glColor4f(par5, par6, par7, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((IIcon) par2Icon).getIconWidth(), ((IIcon) par2Icon).getIconHeight(), f12);
|
||||
|
||||
if (itemstack.hasEffect(pass))
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_EQUAL);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
this.renderManager.renderEngine.bindTexture(field_110798_h);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
float f13 = 0.76F;
|
||||
GL11.glColor4f(0.5F * f13, 0.25F * f13, 0.8F * f13, 1.0F);
|
||||
GL11.glMatrixMode(GL11.GL_TEXTURE);
|
||||
GL11.glPushMatrix();
|
||||
float f14 = 0.125F;
|
||||
GL11.glScalef(f14, f14, f14);
|
||||
float f15 = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 8.0F;
|
||||
GL11.glTranslatef(f15, 0.0F, 0.0F);
|
||||
GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f12);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glScalef(f14, f14, f14);
|
||||
f15 = (float) (Minecraft.getSystemTime() % 4873L) / 4873.0F * 8.0F;
|
||||
GL11.glTranslatef(-f15, 0.0F, 0.0F);
|
||||
GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f12);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glMatrixMode(GL11.GL_MODELVIEW);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthFunc(GL11.GL_LEQUAL);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glPopMatrix();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the item's icon or block into the UI at the specified position.
|
||||
*/
|
||||
public void renderItemIntoGUI (FontRenderer par1FontRenderer, TextureManager par2TextureManager, ItemStack par3ItemStack, int par4, int par5)
|
||||
{
|
||||
renderItemIntoGUI(par1FontRenderer, par2TextureManager, par3ItemStack, par4, par5, false);
|
||||
}
|
||||
|
||||
public void renderItemIntoGUI (FontRenderer par1FontRenderer, TextureManager par2TextureManager, ItemStack par3ItemStack, int par4, int par5, boolean renderEffect)
|
||||
{
|
||||
Item k = par3ItemStack.getItem();
|
||||
int l = par3ItemStack.getItemDamage();
|
||||
Object object = par3ItemStack.getIconIndex();
|
||||
float f;
|
||||
int i1;
|
||||
float f1;
|
||||
float f2;
|
||||
|
||||
Block block = Block.getBlockFromItem(k);//(k < Block.blocksList.length ? Block.blocksList[k] : null);
|
||||
if (par3ItemStack.getItemSpriteNumber() == 0 && block != null && RenderBlocks.renderItemIn3d(block.getRenderType()))
|
||||
{
|
||||
par2TextureManager.bindTexture(TextureMap.locationBlocksTexture);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float) (par4 - 2), (float) (par5 + 3), -3.0F + this.zLevel);
|
||||
GL11.glScalef(10.0F, 10.0F, 10.0F);
|
||||
GL11.glTranslatef(1.0F, 0.5F, 1.0F);
|
||||
GL11.glScalef(1.0F, 1.0F, -1.0F);
|
||||
GL11.glRotatef(210.0F, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
|
||||
i1 = k.getColorFromItemStack(par3ItemStack, 0);
|
||||
f = (float) (i1 >> 16 & 255) / 255.0F;
|
||||
f1 = (float) (i1 >> 8 & 255) / 255.0F;
|
||||
f2 = (float) (i1 & 255) / 255.0F;
|
||||
|
||||
if (this.renderWithColor)
|
||||
{
|
||||
GL11.glColor4f(f, f1, f2, 1.0F);
|
||||
}
|
||||
|
||||
GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
|
||||
this.itemRenderBlocks.useInventoryTint = this.renderWithColor;
|
||||
this.itemRenderBlocks.renderBlockAsItem(block, l, 1.0F);
|
||||
this.itemRenderBlocks.useInventoryTint = true;
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
else if (k.requiresMultipleRenderPasses())
|
||||
{
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
|
||||
for (int j1 = 0; j1 < k.getRenderPasses(l); ++j1)
|
||||
{
|
||||
par2TextureManager.bindTexture(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture);
|
||||
IIcon icon = k.getIcon(par3ItemStack, j1);
|
||||
int k1 = k.getColorFromItemStack(par3ItemStack, j1);
|
||||
f1 = (float) (k1 >> 16 & 255) / 255.0F;
|
||||
f2 = (float) (k1 >> 8 & 255) / 255.0F;
|
||||
float f3 = (float) (k1 & 255) / 255.0F;
|
||||
|
||||
if (this.renderWithColor)
|
||||
{
|
||||
GL11.glColor4f(f1, f2, f3, 1.0F);
|
||||
}
|
||||
|
||||
this.renderIcon(par4, par5, icon, 16, 16);
|
||||
|
||||
if (par3ItemStack.hasEffect(j1))
|
||||
{
|
||||
renderEffect(par2TextureManager, par4, par5);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
ResourceLocation resourcelocation = par2TextureManager.getResourceLocation(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.bindTexture(resourcelocation);
|
||||
|
||||
if (object == null)
|
||||
{
|
||||
object = ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
i1 = k.getColorFromItemStack(par3ItemStack, 0);
|
||||
f = (float) (i1 >> 16 & 255) / 255.0F;
|
||||
f1 = (float) (i1 >> 8 & 255) / 255.0F;
|
||||
f2 = (float) (i1 & 255) / 255.0F;
|
||||
|
||||
if (this.renderWithColor)
|
||||
{
|
||||
GL11.glColor4f(f, f1, f2, 1.0F);
|
||||
}
|
||||
|
||||
this.renderIcon(par4, par5, (IIcon) object, 16, 16);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
|
||||
if (par3ItemStack.hasEffect(0))
|
||||
{
|
||||
renderEffect(par2TextureManager, par4, par5);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glEnable(GL11.GL_CULL_FACE);
|
||||
}
|
||||
|
||||
private void renderEffect (TextureManager manager, int x, int y)
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
manager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);
|
||||
this.renderGlint(x * 431278612 + y * 32178161, x - 2, y - 2, 20, 20);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glDepthMask(true);
|
||||
this.zLevel += 50.0F;
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthFunc(GL11.GL_LEQUAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the item's icon or block into the GUI, including the glint effect.
|
||||
*/
|
||||
public void renderItemAndEffectIntoGUI (FontRenderer par1FontRenderer, TextureManager par2TextureManager, ItemStack par3ItemStack, int par4, int par5)
|
||||
{
|
||||
if (par3ItemStack != null)
|
||||
{
|
||||
if (!ForgeHooksClient.renderInventoryItem(field_147909_c, par2TextureManager, par3ItemStack, renderWithColor, zLevel, (float) par4, (float) par5))
|
||||
{
|
||||
this.renderItemIntoGUI(par1FontRenderer, par2TextureManager, par3ItemStack, par4, par5, true);
|
||||
}
|
||||
|
||||
/* Modders must handle this themselves if they use custom renderers!
|
||||
if (par3ItemStack.hasEffect())
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
par2TextureManager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);
|
||||
this.renderGlint(par4 * 431278612 + par5 * 32178161, par4 - 2, par5 - 2, 20, 20);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glDepthMask(true);
|
||||
this.zLevel += 50.0F;
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthFunc(GL11.GL_LEQUAL);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
private void renderGlint (int par1, int par2, int par3, int par4, int par5)
|
||||
{
|
||||
for (int j1 = 0; j1 < 2; ++j1)
|
||||
{
|
||||
if (j1 == 0)
|
||||
{
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
}
|
||||
|
||||
if (j1 == 1)
|
||||
{
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
}
|
||||
|
||||
float f = 0.00390625F;
|
||||
float f1 = 0.00390625F;
|
||||
float f2 = (float) (Minecraft.getSystemTime() % (long) (3000 + j1 * 1873)) / (3000.0F + (float) (j1 * 1873)) * 256.0F;
|
||||
float f3 = 0.0F;
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
float f4 = 4.0F;
|
||||
|
||||
if (j1 == 1)
|
||||
{
|
||||
f4 = -1.0F;
|
||||
}
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.addVertexWithUV((double) (par2 + 0), (double) (par3 + par5), (double) this.zLevel, (double) ((f2 + (float) par5 * f4) * f), (double) ((f3 + (float) par5) * f1));
|
||||
tessellator.addVertexWithUV((double) (par2 + par4), (double) (par3 + par5), (double) this.zLevel, (double) ((f2 + (float) par4 + (float) par5 * f4) * f),
|
||||
(double) ((f3 + (float) par5) * f1));
|
||||
tessellator.addVertexWithUV((double) (par2 + par4), (double) (par3 + 0), (double) this.zLevel, (double) ((f2 + (float) par4) * f), (double) ((f3 + 0.0F) * f1));
|
||||
tessellator.addVertexWithUV((double) (par2 + 0), (double) (par3 + 0), (double) this.zLevel, (double) ((f2 + 0.0F) * f), (double) ((f3 + 0.0F) * f1));
|
||||
tessellator.draw();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the item's overlay information. Examples being stack count or damage on top of the item's image at the
|
||||
* specified position.
|
||||
*/
|
||||
public void renderItemOverlayIntoGUI (FontRenderer par1FontRenderer, TextureManager par2TextureManager, ItemStack par3ItemStack, int par4, int par5)
|
||||
{
|
||||
this.renderItemOverlayIntoGUI(par1FontRenderer, par2TextureManager, par3ItemStack, par4, par5, (String) null);
|
||||
}
|
||||
|
||||
public void renderItemOverlayIntoGUI (FontRenderer par1FontRenderer, TextureManager par2TextureManager, ItemStack par3ItemStack, int par4, int par5, String par6Str)
|
||||
{
|
||||
if (par3ItemStack != null)
|
||||
{
|
||||
if (par3ItemStack.stackSize > 1 || par6Str != null)
|
||||
{
|
||||
String s1 = par6Str == null ? String.valueOf(par3ItemStack.stackSize) : par6Str;
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDisable(GL11.GL_DEPTH_TEST);
|
||||
par1FontRenderer.drawStringWithShadow(s1, par4 + 19 - 2 - par1FontRenderer.getStringWidth(s1), par5 + 6 + 3, 16777215);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glEnable(GL11.GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
if (par3ItemStack.isItemDamaged())
|
||||
{
|
||||
int k = (int) Math.round(13.0D - (double) par3ItemStack.getItemDamageForDisplay() * 13.0D / (double) par3ItemStack.getMaxDamage());
|
||||
int l = (int) Math.round(255.0D - (double) par3ItemStack.getItemDamageForDisplay() * 255.0D / (double) par3ItemStack.getMaxDamage());
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDisable(GL11.GL_DEPTH_TEST);
|
||||
GL11.glDisable(GL11.GL_TEXTURE_2D);
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
int i1 = 255 - l << 16 | l << 8;
|
||||
int j1 = (255 - l) / 4 << 16 | 16128;
|
||||
this.renderQuad(tessellator, par4 + 2, par5 + 13, 13, 2, 0);
|
||||
this.renderQuad(tessellator, par4 + 2, par5 + 13, 12, 1, j1);
|
||||
this.renderQuad(tessellator, par4 + 2, par5 + 13, k, 1, i1);
|
||||
GL11.glEnable(GL11.GL_TEXTURE_2D);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glEnable(GL11.GL_DEPTH_TEST);
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a quad to the tesselator at the specified position with the set width and height and color. Args:
|
||||
* tessellator, x, y, width, height, color
|
||||
*/
|
||||
private void renderQuad (Tessellator par1Tessellator, int par2, int par3, int par4, int par5, int par6)
|
||||
{
|
||||
par1Tessellator.startDrawingQuads();
|
||||
par1Tessellator.setColorOpaque_I(par6);
|
||||
par1Tessellator.addVertex((double) (par2 + 0), (double) (par3 + 0), 0.0D);
|
||||
par1Tessellator.addVertex((double) (par2 + 0), (double) (par3 + par5), 0.0D);
|
||||
par1Tessellator.addVertex((double) (par2 + par4), (double) (par3 + par5), 0.0D);
|
||||
par1Tessellator.addVertex((double) (par2 + par4), (double) (par3 + 0), 0.0D);
|
||||
par1Tessellator.draw();
|
||||
}
|
||||
|
||||
public void renderIcon (int par1, int par2, IIcon par3Icon, int par4, int par5)
|
||||
{
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.addVertexWithUV((double) (par1 + 0), (double) (par2 + par5), (double) this.zLevel, (double) par3Icon.getMinU(), (double) par3Icon.getMaxV());
|
||||
tessellator.addVertexWithUV((double) (par1 + par4), (double) (par2 + par5), (double) this.zLevel, (double) par3Icon.getMaxU(), (double) par3Icon.getMaxV());
|
||||
tessellator.addVertexWithUV((double) (par1 + par4), (double) (par2 + 0), (double) this.zLevel, (double) par3Icon.getMaxU(), (double) par3Icon.getMinV());
|
||||
tessellator.addVertexWithUV((double) (par1 + 0), (double) (par2 + 0), (double) this.zLevel, (double) par3Icon.getMinU(), (double) par3Icon.getMinV());
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((EntityItem) par1Entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
|
||||
* handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
|
||||
* (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
|
||||
* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
|
||||
*/
|
||||
@Override
|
||||
public void doRender (Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.doRenderItem((EntityItem) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Items should spread out when rendered in 3d?
|
||||
* @return
|
||||
*/
|
||||
public boolean shouldSpreadItems ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Items should have a bob effect
|
||||
* @return
|
||||
*/
|
||||
public boolean shouldBob ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public byte getMiniBlockCount (ItemStack stack)
|
||||
{
|
||||
byte ret = 1;
|
||||
if (stack.stackSize > 1)
|
||||
ret = 2;
|
||||
if (stack.stackSize > 5)
|
||||
ret = 3;
|
||||
if (stack.stackSize > 20)
|
||||
ret = 4;
|
||||
if (stack.stackSize > 40)
|
||||
ret = 5;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows for a subclass to override how many rendered items appear in a
|
||||
* "mini item 3d stack"
|
||||
* @param stack
|
||||
* @return
|
||||
*/
|
||||
public byte getMiniItemCount (ItemStack stack)
|
||||
{
|
||||
byte ret = 1;
|
||||
if (stack.stackSize > 1)
|
||||
ret = 2;
|
||||
if (stack.stackSize > 15)
|
||||
ret = 3;
|
||||
if (stack.stackSize > 31)
|
||||
ret = 4;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -1,283 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelPullcart extends ModelBase
|
||||
{
|
||||
ModelRenderer BackPanel;
|
||||
ModelRenderer FrontPanel;
|
||||
ModelRenderer RightPanel;
|
||||
ModelRenderer LeftPanel;
|
||||
ModelRenderer BottomPanel;
|
||||
ModelRenderer RightHandle;
|
||||
ModelRenderer LeftHandle;
|
||||
ModelRenderer RightSpokeUp;
|
||||
ModelRenderer RightSpokeRight;
|
||||
ModelRenderer RightSpokeDown;
|
||||
ModelRenderer RightSpokeLeft;
|
||||
ModelRenderer RightAxle;
|
||||
ModelRenderer WheelRight1;
|
||||
ModelRenderer WheelRight2;
|
||||
ModelRenderer WheelRight3;
|
||||
ModelRenderer WheelRight4;
|
||||
ModelRenderer WheelRight5;
|
||||
ModelRenderer WheelRight6;
|
||||
ModelRenderer WheelRight7;
|
||||
ModelRenderer WheelRight8;
|
||||
ModelRenderer WheelRight9;
|
||||
ModelRenderer WheelRight10;
|
||||
ModelRenderer WheelRight11;
|
||||
ModelRenderer WheelRight12;
|
||||
ModelRenderer LeftSpokeRight;
|
||||
ModelRenderer LeftSpokeLeft;
|
||||
ModelRenderer LeftSpokeDown;
|
||||
ModelRenderer LeftSpokeUp;
|
||||
ModelRenderer LeftAxle;
|
||||
ModelRenderer WheelLeft1;
|
||||
ModelRenderer WheelLeft2;
|
||||
ModelRenderer WheelLeft3;
|
||||
ModelRenderer WheelLeft4;
|
||||
ModelRenderer WheelLeft5;
|
||||
ModelRenderer WheelLeft6;
|
||||
ModelRenderer WheelLeft7;
|
||||
ModelRenderer WheelLeft8;
|
||||
ModelRenderer WheelLeft9;
|
||||
ModelRenderer WheelLeft10;
|
||||
ModelRenderer WheelLeft11;
|
||||
ModelRenderer WheelLeft12;
|
||||
|
||||
public ModelPullcart()
|
||||
{
|
||||
textureWidth = 128;
|
||||
textureHeight = 64;
|
||||
|
||||
BackPanel = new ModelRenderer(this, 0, 12);
|
||||
BackPanel.addBox(-10F, 0F, 0F, 20, 10, 2);
|
||||
BackPanel.setRotationPoint(0F, -8F, 8F);
|
||||
setRotation(BackPanel, 0F, 0F, 0F);
|
||||
FrontPanel = new ModelRenderer(this, 0, 0);
|
||||
FrontPanel.addBox(-10F, 0F, 0F, 20, 10, 2);
|
||||
FrontPanel.setRotationPoint(0F, -8F, -10F);
|
||||
setRotation(FrontPanel, 0F, 0F, 0F);
|
||||
RightPanel = new ModelRenderer(this, 0, 35);
|
||||
RightPanel.addBox(0F, 0F, -10F, 2, 8, 20);
|
||||
RightPanel.setRotationPoint(-12F, -6F, 0F);
|
||||
setRotation(RightPanel, 0F, 0F, 0F);
|
||||
LeftPanel = new ModelRenderer(this, 24, 15);
|
||||
LeftPanel.addBox(0F, 0F, -10F, 2, 8, 20);
|
||||
LeftPanel.setRotationPoint(10F, -6F, 0F);
|
||||
setRotation(LeftPanel, 0F, 0F, 0F);
|
||||
BottomPanel = new ModelRenderer(this, 40, 43);
|
||||
BottomPanel.addBox(-12F, 0F, -10F, 24, 1, 20);
|
||||
BottomPanel.setRotationPoint(0F, 2F, 0F);
|
||||
setRotation(BottomPanel, 0F, 0F, 0F);
|
||||
RightHandle = new ModelRenderer(this, 92, 33);
|
||||
RightHandle.addBox(0F, 0F, 0F, 16, 2, 2);
|
||||
RightHandle.setRotationPoint(-28F, 0F, -7F);
|
||||
setRotation(RightHandle, 0F, 0F, 0F);
|
||||
LeftHandle = new ModelRenderer(this, 92, 38);
|
||||
LeftHandle.addBox(0F, 0F, 0F, 16, 2, 2);
|
||||
LeftHandle.setRotationPoint(-28F, 0F, 5F);
|
||||
setRotation(LeftHandle, 0F, 0F, 0F);
|
||||
RightSpokeUp = new ModelRenderer(this, 99, 3);
|
||||
RightSpokeUp.addBox(-2F, -8F, 0F, 4, 6, 1);
|
||||
RightSpokeUp.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(RightSpokeUp, 0F, 0F, 0F);
|
||||
RightSpokeRight = new ModelRenderer(this, 112, 15);
|
||||
RightSpokeRight.addBox(2F, -2F, 0F, 6, 4, 1);
|
||||
RightSpokeRight.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(RightSpokeRight, 0F, 0F, 0F);
|
||||
RightSpokeDown = new ModelRenderer(this, 99, 25);
|
||||
RightSpokeDown.addBox(-2F, 2F, 0F, 4, 6, 1);
|
||||
RightSpokeDown.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(RightSpokeDown, 0F, 0F, 0F);
|
||||
RightSpokeLeft = new ModelRenderer(this, 82, 15);
|
||||
RightSpokeLeft.addBox(-8F, -2F, 0F, 6, 4, 1);
|
||||
RightSpokeLeft.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(RightSpokeLeft, 0F, 0F, 0F);
|
||||
RightAxle = new ModelRenderer(this, 98, 14);
|
||||
RightAxle.addBox(-2F, -2F, 0F, 4, 4, 2);
|
||||
RightAxle.setRotationPoint(0F, 3F, -12F);
|
||||
setRotation(RightAxle, 0F, 0F, 0F);
|
||||
WheelRight1 = new ModelRenderer(this, 110, 3);
|
||||
WheelRight1.addBox(2F, -7F, 0F, 2, 2, 1);
|
||||
WheelRight1.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight1, 0F, 0F, 0F);
|
||||
WheelRight2 = new ModelRenderer(this, 117, 5);
|
||||
WheelRight2.addBox(4F, -6F, 0F, 2, 2, 1);
|
||||
WheelRight2.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight2, 0F, 0F, 0F);
|
||||
WheelRight3 = new ModelRenderer(this, 122, 9);
|
||||
WheelRight3.addBox(5F, -4F, 0F, 2, 2, 1);
|
||||
WheelRight3.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight3, 0F, 0F, 0F);
|
||||
WheelRight4 = new ModelRenderer(this, 122, 23);
|
||||
WheelRight4.addBox(5F, 2F, 0F, 2, 2, 1);
|
||||
WheelRight4.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight4, 0F, 0F, 0F);
|
||||
WheelRight5 = new ModelRenderer(this, 117, 27);
|
||||
WheelRight5.addBox(4F, 4F, 0F, 2, 2, 1);
|
||||
WheelRight5.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight5, 0F, 0F, 0F);
|
||||
WheelRight6 = new ModelRenderer(this, 110, 29);
|
||||
WheelRight6.addBox(2F, 5F, 0F, 2, 2, 1);
|
||||
WheelRight6.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight6, 0F, 0F, 0F);
|
||||
WheelRight7 = new ModelRenderer(this, 92, 29);
|
||||
WheelRight7.addBox(-4F, 5F, 0F, 2, 2, 1);
|
||||
WheelRight7.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight7, 0F, 0F, 0F);
|
||||
WheelRight8 = new ModelRenderer(this, 85, 27);
|
||||
WheelRight8.addBox(-6F, 4F, 0F, 2, 2, 1);
|
||||
WheelRight8.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight8, 0F, 0F, 0F);
|
||||
WheelRight9 = new ModelRenderer(this, 80, 23);
|
||||
WheelRight9.addBox(-7F, 2F, 0F, 2, 2, 1);
|
||||
WheelRight9.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight9, 0F, 0F, 0F);
|
||||
WheelRight10 = new ModelRenderer(this, 80, 9);
|
||||
WheelRight10.addBox(-7F, -4F, 0F, 2, 2, 1);
|
||||
WheelRight10.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight10, 0F, 0F, 0F);
|
||||
WheelRight11 = new ModelRenderer(this, 85, 5);
|
||||
WheelRight11.addBox(-6F, -6F, 0F, 2, 2, 1);
|
||||
WheelRight11.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight11, 0F, 0F, 0F);
|
||||
WheelRight12 = new ModelRenderer(this, 92, 3);
|
||||
WheelRight12.addBox(-4F, -7F, 0F, 2, 2, 1);
|
||||
WheelRight12.setRotationPoint(0F, 3F, -11F);
|
||||
setRotation(WheelRight12, 0F, 0F, 0F);
|
||||
LeftSpokeRight = new ModelRenderer(this, 82, 15);
|
||||
LeftSpokeRight.addBox(-8F, -2F, 0F, 6, 4, 1);
|
||||
LeftSpokeRight.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(LeftSpokeRight, 0F, 0F, 0F);
|
||||
LeftSpokeLeft = new ModelRenderer(this, 112, 15);
|
||||
LeftSpokeLeft.addBox(2F, -2F, 0F, 6, 4, 1);
|
||||
LeftSpokeLeft.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(LeftSpokeLeft, 0F, 0F, 0F);
|
||||
LeftSpokeDown = new ModelRenderer(this, 99, 25);
|
||||
LeftSpokeDown.addBox(-2F, 2F, 0F, 4, 6, 1);
|
||||
LeftSpokeDown.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(LeftSpokeDown, 0F, 0F, 0F);
|
||||
LeftSpokeUp = new ModelRenderer(this, 99, 3);
|
||||
LeftSpokeUp.addBox(-2F, -8F, 0F, 4, 6, 1);
|
||||
LeftSpokeUp.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(LeftSpokeUp, 0F, 0F, 0F);
|
||||
LeftAxle = new ModelRenderer(this, 98, 14);
|
||||
LeftAxle.addBox(-2F, -2F, 0F, 4, 4, 2);
|
||||
LeftAxle.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(LeftAxle, 0F, 0F, 0F);
|
||||
WheelLeft1 = new ModelRenderer(this, 92, 3);
|
||||
WheelLeft1.addBox(-4F, -7F, 0F, 2, 2, 1);
|
||||
WheelLeft1.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft1, 0F, 0F, 0F);
|
||||
WheelLeft2 = new ModelRenderer(this, 117, 5);
|
||||
WheelLeft2.addBox(-6F, -6F, 0F, 2, 2, 1);
|
||||
WheelLeft2.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft2, 0F, 0F, 0F);
|
||||
WheelLeft3 = new ModelRenderer(this, 80, 9);
|
||||
WheelLeft3.addBox(-7F, -4F, 0F, 2, 2, 1);
|
||||
WheelLeft3.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft3, 0F, 0F, 0F);
|
||||
WheelLeft4 = new ModelRenderer(this, 80, 23);
|
||||
WheelLeft4.addBox(-7F, 2F, 0F, 2, 2, 1);
|
||||
WheelLeft4.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft4, 0F, 0F, 0F);
|
||||
WheelLeft5 = new ModelRenderer(this, 117, 27);
|
||||
WheelLeft5.addBox(-6F, 4F, 0F, 2, 2, 1);
|
||||
WheelLeft5.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft5, 0F, 0F, 0F);
|
||||
WheelLeft6 = new ModelRenderer(this, 110, 29);
|
||||
WheelLeft6.addBox(-4F, 5F, 0F, 2, 2, 1);
|
||||
WheelLeft6.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft6, 0F, 0F, 0F);
|
||||
WheelLeft7 = new ModelRenderer(this, 92, 29);
|
||||
WheelLeft7.addBox(2F, 5F, 0F, 2, 2, 1);
|
||||
WheelLeft7.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft7, 0F, 0F, 0F);
|
||||
WheelLeft8 = new ModelRenderer(this, 85, 27);
|
||||
WheelLeft8.addBox(4F, 4F, 0F, 2, 2, 1);
|
||||
WheelLeft8.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft8, 0F, 0F, 0F);
|
||||
WheelLeft9 = new ModelRenderer(this, 122, 23);
|
||||
WheelLeft9.addBox(5F, 2F, 0F, 2, 2, 1);
|
||||
WheelLeft9.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft9, 0F, 0F, 0F);
|
||||
WheelLeft10 = new ModelRenderer(this, 122, 9);
|
||||
WheelLeft10.addBox(5F, -4F, 0F, 2, 2, 1);
|
||||
WheelLeft10.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft10, 0F, 0F, 0F);
|
||||
WheelLeft11 = new ModelRenderer(this, 85, 5);
|
||||
WheelLeft11.addBox(4F, -6F, 0F, 2, 2, 1);
|
||||
WheelLeft11.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft11, 0F, 0F, 0F);
|
||||
WheelLeft12 = new ModelRenderer(this, 110, 3);
|
||||
WheelLeft12.addBox(2F, -7F, 0F, 2, 2, 1);
|
||||
WheelLeft12.setRotationPoint(0F, 3F, 10F);
|
||||
setRotation(WheelLeft12, 0F, 0F, 0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render (Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
{
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
BackPanel.render(f5);
|
||||
FrontPanel.render(f5);
|
||||
RightPanel.render(f5);
|
||||
LeftPanel.render(f5);
|
||||
BottomPanel.render(f5);
|
||||
RightHandle.render(f5);
|
||||
LeftHandle.render(f5);
|
||||
RightSpokeUp.render(f5);
|
||||
RightSpokeRight.render(f5);
|
||||
RightSpokeDown.render(f5);
|
||||
RightSpokeLeft.render(f5);
|
||||
RightAxle.render(f5);
|
||||
WheelRight1.render(f5);
|
||||
WheelRight2.render(f5);
|
||||
WheelRight3.render(f5);
|
||||
WheelRight4.render(f5);
|
||||
WheelRight5.render(f5);
|
||||
WheelRight6.render(f5);
|
||||
WheelRight7.render(f5);
|
||||
WheelRight8.render(f5);
|
||||
WheelRight9.render(f5);
|
||||
WheelRight10.render(f5);
|
||||
WheelRight11.render(f5);
|
||||
WheelRight12.render(f5);
|
||||
LeftSpokeRight.render(f5);
|
||||
LeftSpokeLeft.render(f5);
|
||||
LeftSpokeDown.render(f5);
|
||||
LeftSpokeUp.render(f5);
|
||||
LeftAxle.render(f5);
|
||||
WheelLeft1.render(f5);
|
||||
WheelLeft2.render(f5);
|
||||
WheelLeft3.render(f5);
|
||||
WheelLeft4.render(f5);
|
||||
WheelLeft5.render(f5);
|
||||
WheelLeft6.render(f5);
|
||||
WheelLeft7.render(f5);
|
||||
WheelLeft8.render(f5);
|
||||
WheelLeft9.render(f5);
|
||||
WheelLeft10.render(f5);
|
||||
WheelLeft11.render(f5);
|
||||
WheelLeft12.render(f5);
|
||||
}
|
||||
|
||||
private void setRotation (ModelRenderer model, float x, float y, float z)
|
||||
{
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
@Override
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,458 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelWagon extends ModelBase
|
||||
{
|
||||
ModelRenderer Bottom;
|
||||
ModelRenderer Left;
|
||||
ModelRenderer Right;
|
||||
ModelRenderer Back;
|
||||
ModelRenderer Front;
|
||||
ModelRenderer Leftpull;
|
||||
ModelRenderer Rightpull;
|
||||
ModelRenderer LeftWheelAxle;
|
||||
ModelRenderer LeftWCenterHbeam;
|
||||
ModelRenderer LeftWCenterVtop;
|
||||
ModelRenderer LeftWCenterVbottom;
|
||||
ModelRenderer LeftWnwH;
|
||||
ModelRenderer LeftWnwM;
|
||||
ModelRenderer LeftWnwV;
|
||||
ModelRenderer LeftWnwEye;
|
||||
ModelRenderer LeftWneH;
|
||||
ModelRenderer LeftWneM;
|
||||
ModelRenderer LeftWneV;
|
||||
ModelRenderer LeftWneEye;
|
||||
ModelRenderer LeftWswH;
|
||||
ModelRenderer LeftWswM;
|
||||
ModelRenderer LeftWswV;
|
||||
ModelRenderer LeftWswEye;
|
||||
ModelRenderer LeftWseH;
|
||||
ModelRenderer LeftWseM;
|
||||
ModelRenderer LeftWseV;
|
||||
ModelRenderer LeftWseEye;
|
||||
ModelRenderer RightWheelAxle;
|
||||
ModelRenderer RightWCenterHbeam;
|
||||
ModelRenderer RightWCenterVtop;
|
||||
ModelRenderer RightWCenterVbottom;
|
||||
ModelRenderer RightWnwH;
|
||||
ModelRenderer RightWnwM;
|
||||
ModelRenderer RightWnwV;
|
||||
ModelRenderer RightWnwEye;
|
||||
ModelRenderer RoghtWneH;
|
||||
ModelRenderer RightWneM;
|
||||
ModelRenderer RightWneV;
|
||||
ModelRenderer RightWneEye;
|
||||
ModelRenderer RightWswH;
|
||||
ModelRenderer RightWswM;
|
||||
ModelRenderer RightWswV;
|
||||
ModelRenderer RightWswEye;
|
||||
ModelRenderer RightWseH;
|
||||
ModelRenderer RightWseM;
|
||||
ModelRenderer RightWseV;
|
||||
public ModelRenderer RightWseEye;
|
||||
ModelRenderer HandBrakeMain;
|
||||
ModelRenderer HandbrakeJamb;
|
||||
ModelRenderer StandCenterBar;
|
||||
ModelRenderer StandLeft;
|
||||
ModelRenderer StandRight;
|
||||
|
||||
public ModelWagon()
|
||||
{
|
||||
this.textureWidth = 128;
|
||||
this.textureHeight = 64;
|
||||
this.Bottom = new ModelRenderer(this, 26, 46);
|
||||
this.Bottom.addBox(0.0F, 0.0F, 0.0F, 20, 2, 16);
|
||||
this.Bottom.setRotationPoint(-10.0F, 4.0F, -8.0F);
|
||||
this.Bottom.setTextureSize(64, 32);
|
||||
this.Bottom.mirror = true;
|
||||
this.setRotation(this.Bottom, 0.0F, 0.0F, 0.0F);
|
||||
this.Left = new ModelRenderer(this, 0, 35);
|
||||
this.Left.addBox(0.0F, 0.0F, 0.0F, 20, 8, 2);
|
||||
this.Left.setRotationPoint(-10.0F, -4.0F, -8.0F);
|
||||
this.Left.setTextureSize(64, 32);
|
||||
this.Left.mirror = true;
|
||||
this.setRotation(this.Left, 0.0F, 0.0F, 0.0F);
|
||||
this.Right = new ModelRenderer(this, 83, 35);
|
||||
this.Right.addBox(0.0F, 0.0F, 0.0F, 20, 8, 2);
|
||||
this.Right.setRotationPoint(-10.0F, -4.0F, 6.0F);
|
||||
this.Right.setTextureSize(64, 32);
|
||||
this.Right.mirror = true;
|
||||
this.setRotation(this.Right, 0.0F, 0.0F, 0.0F);
|
||||
this.Back = new ModelRenderer(this, 99, 46);
|
||||
this.Back.addBox(-2.0F, -5.0F, 0.0F, 2, 5, 12);
|
||||
this.Back.setRotationPoint(10.0F, 4.0F, -6.0F);
|
||||
this.Back.setTextureSize(64, 32);
|
||||
this.Back.mirror = true;
|
||||
this.setRotation(this.Back, 0.0F, 0.0F, 0.0F);
|
||||
this.Front = new ModelRenderer(this, 50, 1);
|
||||
this.Front.addBox(0.0F, 0.0F, 0.0F, 2, 8, 12);
|
||||
this.Front.setRotationPoint(-10.0F, -4.0F, -6.0F);
|
||||
this.Front.setTextureSize(64, 32);
|
||||
this.Front.mirror = true;
|
||||
this.setRotation(this.Front, 0.0F, 0.0F, 0.0F);
|
||||
this.Leftpull = new ModelRenderer(this, 0, 30);
|
||||
this.Leftpull.addBox(0.0F, 0.0F, 0.0F, 16, 2, 2);
|
||||
this.Leftpull.setRotationPoint(-26.0F, 2.0F, -6.0F);
|
||||
this.Leftpull.setTextureSize(64, 32);
|
||||
this.Leftpull.mirror = true;
|
||||
this.setRotation(this.Leftpull, 0.0F, 0.0F, 0.0F);
|
||||
this.Rightpull = new ModelRenderer(this, 91, 30);
|
||||
this.Rightpull.addBox(0.0F, 0.0F, 0.0F, 16, 2, 2);
|
||||
this.Rightpull.setRotationPoint(-26.0F, 2.0F, 4.0F);
|
||||
this.Rightpull.setTextureSize(64, 32);
|
||||
this.Rightpull.mirror = true;
|
||||
this.setRotation(this.Rightpull, 0.0F, 0.0F, 0.0F);
|
||||
this.HandBrakeMain = new ModelRenderer(this, 1, 59);
|
||||
this.HandBrakeMain.addBox(-6.0F, 0.0F, 0.0F, 11, 1, 1);
|
||||
this.HandBrakeMain.setRotationPoint(-9.0F, -3.0F, -9.0F);
|
||||
this.HandBrakeMain.setTextureSize(64, 32);
|
||||
this.HandBrakeMain.mirror = true;
|
||||
this.setRotation(this.HandBrakeMain, 0.0F, 0.0F, 0.0F);
|
||||
this.HandbrakeJamb = new ModelRenderer(this, 10, 62);
|
||||
this.HandbrakeJamb.addBox(3.0F, 1.0F, 0.0F, 2, 1, 1);
|
||||
this.HandbrakeJamb.setRotationPoint(-9.0F, -3.0F, -9.0F);
|
||||
this.HandbrakeJamb.setTextureSize(64, 32);
|
||||
this.HandbrakeJamb.mirror = true;
|
||||
this.setRotation(this.HandbrakeJamb, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWheelAxle = new ModelRenderer(this, 0, 12);
|
||||
this.LeftWheelAxle.addBox(-1.0F, -1.0F, -1.0F, 2, 2, 3);
|
||||
this.LeftWheelAxle.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWheelAxle.setTextureSize(64, 32);
|
||||
this.LeftWheelAxle.mirror = true;
|
||||
this.setRotation(this.LeftWheelAxle, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWCenterHbeam = new ModelRenderer(this, 12, 12);
|
||||
this.LeftWCenterHbeam.addBox(-8.0F, -2.0F, 0.0F, 16, 4, 1);
|
||||
this.LeftWCenterHbeam.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWCenterHbeam.setTextureSize(64, 32);
|
||||
this.LeftWCenterHbeam.mirror = true;
|
||||
this.setRotation(this.LeftWCenterHbeam, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWCenterVtop = new ModelRenderer(this, 18, 0);
|
||||
this.LeftWCenterVtop.addBox(-2.0F, -8.0F, 0.0F, 4, 6, 1);
|
||||
this.LeftWCenterVtop.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWCenterVtop.setTextureSize(64, 32);
|
||||
this.LeftWCenterVtop.mirror = true;
|
||||
this.setRotation(this.LeftWCenterVtop, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWCenterVbottom = new ModelRenderer(this, 18, 22);
|
||||
this.LeftWCenterVbottom.addBox(-2.0F, 2.0F, 0.0F, 4, 6, 1);
|
||||
this.LeftWCenterVbottom.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWCenterVbottom.setTextureSize(64, 32);
|
||||
this.LeftWCenterVbottom.mirror = true;
|
||||
this.setRotation(this.LeftWCenterVbottom, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWnwH = new ModelRenderer(this, 0, 7);
|
||||
this.LeftWnwH.addBox(-7.0F, -4.0F, 0.0F, 3, 2, 1);
|
||||
this.LeftWnwH.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWnwH.setTextureSize(64, 32);
|
||||
this.LeftWnwH.mirror = true;
|
||||
this.setRotation(this.LeftWnwH, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWnwM = new ModelRenderer(this, 4, 3);
|
||||
this.LeftWnwM.addBox(-6.0F, -6.0F, 0.0F, 2, 2, 1);
|
||||
this.LeftWnwM.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWnwM.setTextureSize(64, 32);
|
||||
this.LeftWnwM.mirror = true;
|
||||
this.setRotation(this.LeftWnwM, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWnwV = new ModelRenderer(this, 11, 1);
|
||||
this.LeftWnwV.addBox(-4.0F, -7.0F, 0.0F, 2, 3, 1);
|
||||
this.LeftWnwV.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWnwV.setTextureSize(64, 32);
|
||||
this.LeftWnwV.mirror = true;
|
||||
this.setRotation(this.LeftWnwV, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWnwEye = new ModelRenderer(this, 10, 7);
|
||||
this.LeftWnwEye.addBox(-4.0F, -4.0F, 0.0F, 1, 1, 1);
|
||||
this.LeftWnwEye.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWnwEye.setTextureSize(64, 32);
|
||||
this.LeftWnwEye.mirror = true;
|
||||
this.setRotation(this.LeftWnwEye, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWneH = new ModelRenderer(this, 40, 7);
|
||||
this.LeftWneH.addBox(4.0F, -4.0F, 0.0F, 3, 2, 1);
|
||||
this.LeftWneH.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWneH.setTextureSize(64, 32);
|
||||
this.LeftWneH.mirror = true;
|
||||
this.setRotation(this.LeftWneH, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWneM = new ModelRenderer(this, 37, 3);
|
||||
this.LeftWneM.addBox(4.0F, -6.0F, 0.0F, 2, 2, 1);
|
||||
this.LeftWneM.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWneM.setTextureSize(64, 32);
|
||||
this.LeftWneM.mirror = true;
|
||||
this.setRotation(this.LeftWneM, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWneV = new ModelRenderer(this, 29, 1);
|
||||
this.LeftWneV.addBox(2.0F, -7.0F, 0.0F, 2, 3, 1);
|
||||
this.LeftWneV.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWneV.setTextureSize(64, 32);
|
||||
this.LeftWneV.mirror = true;
|
||||
this.setRotation(this.LeftWneV, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWneEye = new ModelRenderer(this, 33, 7);
|
||||
this.LeftWneEye.addBox(3.0F, -4.0F, 0.0F, 1, 1, 1);
|
||||
this.LeftWneEye.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWneEye.setTextureSize(64, 32);
|
||||
this.LeftWneEye.mirror = true;
|
||||
this.setRotation(this.LeftWneEye, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWswH = new ModelRenderer(this, 0, 19);
|
||||
this.LeftWswH.addBox(-7.0F, 2.0F, 0.0F, 3, 2, 1);
|
||||
this.LeftWswH.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWswH.setTextureSize(64, 32);
|
||||
this.LeftWswH.mirror = true;
|
||||
this.setRotation(this.LeftWswH, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWswM = new ModelRenderer(this, 4, 23);
|
||||
this.LeftWswM.addBox(-6.0F, 4.0F, 0.0F, 2, 2, 1);
|
||||
this.LeftWswM.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWswM.setTextureSize(64, 32);
|
||||
this.LeftWswM.mirror = true;
|
||||
this.setRotation(this.LeftWswM, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWswV = new ModelRenderer(this, 11, 24);
|
||||
this.LeftWswV.addBox(-4.0F, 4.0F, 0.0F, 2, 3, 1);
|
||||
this.LeftWswV.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWswV.setTextureSize(64, 32);
|
||||
this.LeftWswV.mirror = true;
|
||||
this.setRotation(this.LeftWswV, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWswEye = new ModelRenderer(this, 10, 20);
|
||||
this.LeftWswEye.addBox(-4.0F, 3.0F, 0.0F, 1, 1, 1);
|
||||
this.LeftWswEye.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWswEye.setTextureSize(64, 32);
|
||||
this.LeftWswEye.mirror = true;
|
||||
this.setRotation(this.LeftWswEye, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWseH = new ModelRenderer(this, 40, 19);
|
||||
this.LeftWseH.addBox(4.0F, 2.0F, 0.0F, 3, 2, 1);
|
||||
this.LeftWseH.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWseH.setTextureSize(64, 32);
|
||||
this.LeftWseH.mirror = true;
|
||||
this.setRotation(this.LeftWseH, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWseM = new ModelRenderer(this, 37, 23);
|
||||
this.LeftWseM.addBox(4.0F, 4.0F, 0.0F, 2, 2, 1);
|
||||
this.LeftWseM.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWseM.setTextureSize(64, 32);
|
||||
this.LeftWseM.mirror = true;
|
||||
this.setRotation(this.LeftWseM, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWseV = new ModelRenderer(this, 29, 24);
|
||||
this.LeftWseV.addBox(2.0F, 4.0F, 0.0F, 2, 3, 1);
|
||||
this.LeftWseV.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWseV.setTextureSize(64, 32);
|
||||
this.LeftWseV.mirror = true;
|
||||
this.setRotation(this.LeftWseV, 0.0F, 0.0F, 0.0F);
|
||||
this.LeftWseEye = new ModelRenderer(this, 33, 20);
|
||||
this.LeftWseEye.addBox(3.0F, 3.0F, 0.0F, 1, 1, 1);
|
||||
this.LeftWseEye.setRotationPoint(0.0F, 5.0F, -10.0F);
|
||||
this.LeftWseEye.setTextureSize(64, 32);
|
||||
this.LeftWseEye.mirror = true;
|
||||
this.setRotation(this.LeftWseEye, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWheelAxle = new ModelRenderer(this, 117, 12);
|
||||
this.RightWheelAxle.addBox(-1.0F, -1.0F, -1.0F, 2, 2, 3);
|
||||
this.RightWheelAxle.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWheelAxle.setTextureSize(64, 32);
|
||||
this.RightWheelAxle.mirror = true;
|
||||
this.setRotation(this.RightWheelAxle, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWCenterHbeam = new ModelRenderer(this, 80, 12);
|
||||
this.RightWCenterHbeam.addBox(-8.0F, -2.0F, 0.0F, 16, 4, 1);
|
||||
this.RightWCenterHbeam.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWCenterHbeam.setTextureSize(64, 32);
|
||||
this.RightWCenterHbeam.mirror = true;
|
||||
this.setRotation(this.RightWCenterHbeam, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWCenterVtop = new ModelRenderer(this, 98, 0);
|
||||
this.RightWCenterVtop.addBox(-2.0F, -8.0F, 0.0F, 4, 6, 1);
|
||||
this.RightWCenterVtop.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWCenterVtop.setTextureSize(64, 32);
|
||||
this.RightWCenterVtop.mirror = true;
|
||||
this.setRotation(this.RightWCenterVtop, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWCenterVbottom = new ModelRenderer(this, 98, 22);
|
||||
this.RightWCenterVbottom.addBox(-2.0F, 2.0F, 0.0F, 4, 6, 1);
|
||||
this.RightWCenterVbottom.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWCenterVbottom.setTextureSize(64, 32);
|
||||
this.RightWCenterVbottom.mirror = true;
|
||||
this.setRotation(this.RightWCenterVbottom, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWnwH = new ModelRenderer(this, 79, 7);
|
||||
this.RightWnwH.addBox(4.0F, -4.0F, 0.0F, 3, 2, 1);
|
||||
this.RightWnwH.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWnwH.setTextureSize(64, 32);
|
||||
this.RightWnwH.mirror = true;
|
||||
this.setRotation(this.RightWnwH, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWnwM = new ModelRenderer(this, 84, 3);
|
||||
this.RightWnwM.addBox(4.0F, -6.0F, 0.0F, 2, 2, 1);
|
||||
this.RightWnwM.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWnwM.setTextureSize(64, 32);
|
||||
this.RightWnwM.mirror = true;
|
||||
this.setRotation(this.RightWnwM, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWnwV = new ModelRenderer(this, 91, 1);
|
||||
this.RightWnwV.addBox(2.0F, -7.0F, 0.0F, 2, 3, 1);
|
||||
this.RightWnwV.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWnwV.setTextureSize(64, 32);
|
||||
this.RightWnwV.mirror = true;
|
||||
this.setRotation(this.RightWnwV, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWnwEye = new ModelRenderer(this, 90, 7);
|
||||
this.RightWnwEye.addBox(3.0F, -4.0F, 0.0F, 1, 1, 1);
|
||||
this.RightWnwEye.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWnwEye.setTextureSize(64, 32);
|
||||
this.RightWnwEye.mirror = true;
|
||||
this.setRotation(this.RightWnwEye, 0.0F, 0.0F, 0.0F);
|
||||
this.RoghtWneH = new ModelRenderer(this, 119, 7);
|
||||
this.RoghtWneH.addBox(-7.0F, -4.0F, 0.0F, 3, 2, 1);
|
||||
this.RoghtWneH.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RoghtWneH.setTextureSize(64, 32);
|
||||
this.RoghtWneH.mirror = true;
|
||||
this.setRotation(this.RoghtWneH, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWneM = new ModelRenderer(this, 116, 3);
|
||||
this.RightWneM.addBox(-6.0F, -6.0F, 0.0F, 2, 2, 1);
|
||||
this.RightWneM.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWneM.setTextureSize(64, 32);
|
||||
this.RightWneM.mirror = true;
|
||||
this.setRotation(this.RightWneM, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWneV = new ModelRenderer(this, 109, 1);
|
||||
this.RightWneV.addBox(-4.0F, -7.0F, 0.0F, 2, 3, 1);
|
||||
this.RightWneV.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWneV.setTextureSize(64, 32);
|
||||
this.RightWneV.mirror = true;
|
||||
this.setRotation(this.RightWneV, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWneEye = new ModelRenderer(this, 113, 7);
|
||||
this.RightWneEye.addBox(-4.0F, -4.0F, 0.0F, 1, 1, 1);
|
||||
this.RightWneEye.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWneEye.setTextureSize(64, 32);
|
||||
this.RightWneEye.mirror = true;
|
||||
this.setRotation(this.RightWneEye, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWswH = new ModelRenderer(this, 79, 19);
|
||||
this.RightWswH.addBox(4.0F, 2.0F, 0.0F, 3, 2, 1);
|
||||
this.RightWswH.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWswH.setTextureSize(64, 32);
|
||||
this.RightWswH.mirror = true;
|
||||
this.setRotation(this.RightWswH, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWswM = new ModelRenderer(this, 84, 23);
|
||||
this.RightWswM.addBox(4.0F, 4.0F, 0.0F, 2, 2, 1);
|
||||
this.RightWswM.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWswM.setTextureSize(64, 32);
|
||||
this.RightWswM.mirror = true;
|
||||
this.setRotation(this.RightWswM, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWswV = new ModelRenderer(this, 91, 24);
|
||||
this.RightWswV.addBox(2.0F, 4.0F, 0.0F, 2, 3, 1);
|
||||
this.RightWswV.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWswV.setTextureSize(64, 32);
|
||||
this.RightWswV.mirror = true;
|
||||
this.setRotation(this.RightWswV, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWswEye = new ModelRenderer(this, 90, 20);
|
||||
this.RightWswEye.addBox(3.0F, 3.0F, 0.0F, 1, 1, 1);
|
||||
this.RightWswEye.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWswEye.setTextureSize(64, 32);
|
||||
this.RightWswEye.mirror = true;
|
||||
this.setRotation(this.RightWswEye, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWseH = new ModelRenderer(this, 119, 19);
|
||||
this.RightWseH.addBox(-7.0F, 2.0F, 0.0F, 3, 2, 1);
|
||||
this.RightWseH.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWseH.setTextureSize(64, 32);
|
||||
this.RightWseH.mirror = true;
|
||||
this.setRotation(this.RightWseH, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWseM = new ModelRenderer(this, 116, 23);
|
||||
this.RightWseM.addBox(-6.0F, 4.0F, 0.0F, 2, 2, 1);
|
||||
this.RightWseM.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWseM.setTextureSize(64, 32);
|
||||
this.RightWseM.mirror = true;
|
||||
this.setRotation(this.RightWseM, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWseV = new ModelRenderer(this, 109, 24);
|
||||
this.RightWseV.addBox(-4.0F, 4.0F, 0.0F, 2, 3, 1);
|
||||
this.RightWseV.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWseV.setTextureSize(64, 32);
|
||||
this.RightWseV.mirror = true;
|
||||
this.setRotation(this.RightWseV, 0.0F, 0.0F, 0.0F);
|
||||
this.RightWseEye = new ModelRenderer(this, 113, 20);
|
||||
this.RightWseEye.addBox(-4.0F, 3.0F, 0.0F, 1, 1, 1);
|
||||
this.RightWseEye.setRotationPoint(0.0F, 5.0F, 9.0F);
|
||||
this.RightWseEye.setTextureSize(64, 32);
|
||||
this.RightWseEye.mirror = true;
|
||||
this.setRotation(this.RightWseEye, 0.0F, 0.0F, 0.0F);
|
||||
this.StandCenterBar = new ModelRenderer(this, 47, 27);
|
||||
this.StandCenterBar.addBox(-1.0F, 0.0F, -8.0F, 1, 2, 16);
|
||||
this.StandCenterBar.setRotationPoint(-9.0F, 6.0F, 0.0F);
|
||||
this.StandCenterBar.setTextureSize(64, 32);
|
||||
this.StandCenterBar.mirror = true;
|
||||
this.setRotation(this.StandCenterBar, 0.0F, 0.0F, 0.0F);
|
||||
this.StandLeft = new ModelRenderer(this, 37, 27);
|
||||
this.StandLeft.addBox(-1.0F, 2.0F, -8.0F, 1, 5, 2);
|
||||
this.StandLeft.setRotationPoint(-9.0F, 6.0F, 0.0F);
|
||||
this.StandLeft.setTextureSize(64, 32);
|
||||
this.StandLeft.mirror = true;
|
||||
this.setRotation(this.StandLeft, 0.0F, 0.0F, 0.0F);
|
||||
this.StandRight = new ModelRenderer(this, 84, 27);
|
||||
this.StandRight.addBox(-1.0F, 2.0F, 6.0F, 1, 5, 2);
|
||||
this.StandRight.setRotationPoint(-9.0F, 6.0F, 0.0F);
|
||||
this.StandRight.setTextureSize(64, 32);
|
||||
this.StandRight.mirror = true;
|
||||
this.setRotation(this.StandRight, 0.0F, 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the models various rotation angles then renders the model.
|
||||
*/
|
||||
@Override
|
||||
public void render (Entity var1, float var2, float var3, float var4, float var5, float var6, float var7)
|
||||
{
|
||||
super.render(var1, var2, var3, var4, var5, var6, var7);
|
||||
this.setRotationAngles(var2, var3, var4, var5, var6, var7, var1);
|
||||
this.LeftWheelAxle.rotateAngleZ = this.LeftWCenterHbeam.rotateAngleZ = this.LeftWCenterVtop.rotateAngleZ = this.LeftWCenterVbottom.rotateAngleZ = this.LeftWnwH.rotateAngleZ = this.LeftWnwM.rotateAngleZ = this.LeftWnwV.rotateAngleZ = this.LeftWnwEye.rotateAngleZ = this.LeftWneH.rotateAngleZ = this.LeftWneM.rotateAngleZ = this.LeftWneV.rotateAngleZ = this.LeftWneEye.rotateAngleZ = this.LeftWswH.rotateAngleZ = this.LeftWswM.rotateAngleZ = this.LeftWswV.rotateAngleZ = this.LeftWswEye.rotateAngleZ = this.LeftWseH.rotateAngleZ = this.LeftWseM.rotateAngleZ = this.LeftWseV.rotateAngleZ = this.LeftWseEye.rotateAngleZ = this.RightWheelAxle.rotateAngleZ = this.RightWCenterHbeam.rotateAngleZ = this.RightWCenterVtop.rotateAngleZ = this.RightWCenterVbottom.rotateAngleZ = this.RightWnwH.rotateAngleZ = this.RightWnwM.rotateAngleZ = this.RightWnwV.rotateAngleZ = this.RightWnwEye.rotateAngleZ = this.RoghtWneH.rotateAngleZ = this.RightWneM.rotateAngleZ = this.RightWneV.rotateAngleZ = this.RightWneEye.rotateAngleZ = this.RightWswH.rotateAngleZ = this.RightWswM.rotateAngleZ = this.RightWswV.rotateAngleZ = this.RightWswEye.rotateAngleZ = this.RightWseH.rotateAngleZ = this.RightWseM.rotateAngleZ = this.RightWseV.rotateAngleZ = this.RightWseEye.rotateAngleZ;
|
||||
this.Bottom.render(var7);
|
||||
this.Left.render(var7);
|
||||
this.Right.render(var7);
|
||||
this.Back.render(var7);
|
||||
this.Front.render(var7);
|
||||
this.Leftpull.render(var7);
|
||||
this.Rightpull.render(var7);
|
||||
this.HandBrakeMain.render(var7);
|
||||
this.HandbrakeJamb.render(var7);
|
||||
this.LeftWheelAxle.render(var7);
|
||||
this.LeftWCenterHbeam.render(var7);
|
||||
this.LeftWCenterVtop.render(var7);
|
||||
this.LeftWCenterVbottom.render(var7);
|
||||
this.LeftWnwH.render(var7);
|
||||
this.LeftWnwM.render(var7);
|
||||
this.LeftWnwV.render(var7);
|
||||
this.LeftWnwEye.render(var7);
|
||||
this.LeftWneH.render(var7);
|
||||
this.LeftWneM.render(var7);
|
||||
this.LeftWneV.render(var7);
|
||||
this.LeftWneEye.render(var7);
|
||||
this.LeftWswH.render(var7);
|
||||
this.LeftWswM.render(var7);
|
||||
this.LeftWswV.render(var7);
|
||||
this.LeftWswEye.render(var7);
|
||||
this.LeftWseH.render(var7);
|
||||
this.LeftWseM.render(var7);
|
||||
this.LeftWseV.render(var7);
|
||||
this.LeftWseEye.render(var7);
|
||||
this.RightWheelAxle.render(var7);
|
||||
this.RightWCenterHbeam.render(var7);
|
||||
this.RightWCenterVtop.render(var7);
|
||||
this.RightWCenterVbottom.render(var7);
|
||||
this.RightWnwH.render(var7);
|
||||
this.RightWnwM.render(var7);
|
||||
this.RightWnwV.render(var7);
|
||||
this.RightWnwEye.render(var7);
|
||||
this.RoghtWneH.render(var7);
|
||||
this.RightWneM.render(var7);
|
||||
this.RightWneV.render(var7);
|
||||
this.RightWneEye.render(var7);
|
||||
this.RightWswH.render(var7);
|
||||
this.RightWswM.render(var7);
|
||||
this.RightWswV.render(var7);
|
||||
this.RightWswEye.render(var7);
|
||||
this.RightWseH.render(var7);
|
||||
this.RightWseM.render(var7);
|
||||
this.RightWseV.render(var7);
|
||||
this.RightWseEye.render(var7);
|
||||
this.StandCenterBar.render(var7);
|
||||
this.StandLeft.render(var7);
|
||||
this.StandRight.render(var7);
|
||||
}
|
||||
|
||||
private void setRotation (ModelRenderer var1, float var2, float var3, float var4)
|
||||
{
|
||||
var1.rotateAngleX = var2;
|
||||
var1.rotateAngleY = var3;
|
||||
var1.rotateAngleZ = var4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the models various rotation angles.
|
||||
*/
|
||||
@Override
|
||||
public void setRotationAngles (float var1, float var2, float var3, float var4, float var5, float var6, Entity par7Entity)
|
||||
{
|
||||
super.setRotationAngles(var1, var2, var3, var4, var5, var6, par7Entity);
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class SlimeModel extends ModelBase
|
||||
{
|
||||
/** The slime's bodies, both the inside box and the outside box */
|
||||
ModelRenderer slimeBodies;
|
||||
|
||||
/** The slime's right eye */
|
||||
ModelRenderer slimeRightEye;
|
||||
|
||||
/** The slime's left eye */
|
||||
ModelRenderer slimeLeftEye;
|
||||
|
||||
/** The slime's mouth */
|
||||
ModelRenderer slimeMouth;
|
||||
|
||||
public SlimeModel(int par1)
|
||||
{
|
||||
this.slimeBodies = new ModelRenderer(this, 0, par1);
|
||||
this.slimeBodies.addBox(-4.0F, 16.0F, -4.0F, 8, 8, 8);
|
||||
|
||||
if (par1 > 0)
|
||||
{
|
||||
this.slimeBodies = new ModelRenderer(this, 0, par1);
|
||||
this.slimeBodies.addBox(-3.0F, 17.0F, -3.0F, 6, 6, 6);
|
||||
this.slimeRightEye = new ModelRenderer(this, 32, 0);
|
||||
this.slimeRightEye.addBox(-3.25F, 18.0F, -3.5F, 2, 2, 2);
|
||||
this.slimeLeftEye = new ModelRenderer(this, 32, 4);
|
||||
this.slimeLeftEye.addBox(1.25F, 18.0F, -3.5F, 2, 2, 2);
|
||||
this.slimeMouth = new ModelRenderer(this, 32, 8);
|
||||
this.slimeMouth.addBox(0.0F, 21.0F, -3.5F, 1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the models various rotation angles then renders the model.
|
||||
*/
|
||||
@Override
|
||||
public void render (Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
|
||||
{
|
||||
this.setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
|
||||
this.slimeBodies.render(par7);
|
||||
|
||||
if (this.slimeRightEye != null)
|
||||
{
|
||||
this.slimeRightEye.render(par7);
|
||||
this.slimeLeftEye.render(par7);
|
||||
this.slimeMouth.render(par7);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
package tconstruct.client.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.boss.BossStatus;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import tconstruct.entity.BlueSlime;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class SlimeRender extends RenderLiving
|
||||
{
|
||||
static final ResourceLocation texture = new ResourceLocation("tinker", "textures/mob/slimeedible.png");
|
||||
private ModelBase scaleAmount;
|
||||
|
||||
public SlimeRender(ModelBase par1ModelBase, ModelBase par2ModelBase, float par3)
|
||||
{
|
||||
super(par1ModelBase, par3);
|
||||
this.scaleAmount = par2ModelBase;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doRender (EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
super.doRender(par1EntityLiving, par2, par4, par6, par8, par9);
|
||||
renderBossHealth((BlueSlime) par1EntityLiving);
|
||||
}
|
||||
|
||||
public void renderBossHealth (BlueSlime slime)
|
||||
{
|
||||
if (slime.getSlimeSize() >= 8)
|
||||
BossStatus.setBossStatus(slime, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether Slime Render should pass or not.
|
||||
*/
|
||||
protected int shouldSlimeRenderPass (BlueSlime blueSlime, int par2, float par3)
|
||||
{
|
||||
if (blueSlime.isInvisible())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (par2 == 0)
|
||||
{
|
||||
this.setRenderPassModel(this.scaleAmount);
|
||||
GL11.glEnable(GL11.GL_NORMALIZE);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (par2 == 1)
|
||||
{
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the scale for the slime based on getSlimeSize in EdibleSlime
|
||||
*/
|
||||
protected void scaleSlime (BlueSlime par1EdibleSlime, float par2)
|
||||
{
|
||||
float f1 = (float) par1EdibleSlime.getSlimeSize();
|
||||
float f2 = (par1EdibleSlime.sizeHeight + (par1EdibleSlime.sizeFactor - par1EdibleSlime.sizeHeight) * par2) / (f1 * 0.5F + 1.0F);
|
||||
float f3 = 1.0F / (f2 + 1.0F);
|
||||
GL11.glScalef(f3 * f1, 1.0F / f3 * f1, f3 * f1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows the render to do any OpenGL state modifications necessary before
|
||||
* the model is rendered. Args: entityLiving, partialTickTime
|
||||
*/
|
||||
@Override
|
||||
protected void preRenderCallback (EntityLivingBase par1EntityLiving, float par2)
|
||||
{
|
||||
this.scaleSlime((BlueSlime) par1EntityLiving, par2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries whether should render the specified pass or not.
|
||||
*/
|
||||
@Override
|
||||
protected int shouldRenderPass (EntityLivingBase par1EntityLiving, int par2, float par3)
|
||||
{
|
||||
return this.shouldSlimeRenderPass((BlueSlime) par1EntityLiving, par2, par3);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,8 @@ import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import tconstruct.common.TRepo;
|
||||
import tconstruct.entity.item.ExplosivePrimed;
|
||||
import tconstruct.mechworks.entity.item.ExplosivePrimed;
|
||||
import tconstruct.world.TinkerWorld;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -52,7 +52,7 @@ public class ExplosiveRender extends Render
|
||||
|
||||
f2 = (1.0F - ((float) par1EntityTNTPrimed.fuse - par9 + 1.0F) / 100.0F) * 0.8F;
|
||||
this.bindEntityTexture(par1EntityTNTPrimed);
|
||||
this.blockRenderer.renderBlockAsItem(TRepo.slimeExplosive, 0, par1EntityTNTPrimed.getBrightness(par9));
|
||||
this.blockRenderer.renderBlockAsItem(TinkerWorld.slimeExplosive, 0, par1EntityTNTPrimed.getBrightness(par9));
|
||||
|
||||
if (par1EntityTNTPrimed.fuse / 5 % 2 == 0)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import tconstruct.entity.projectile.ArrowEntity;
|
||||
import tconstruct.tools.entity.ArrowEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import net.minecraftforge.client.ForgeHooksClient;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import tconstruct.entity.projectile.ArrowEntity;
|
||||
import tconstruct.tools.entity.ArrowEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import net.minecraftforge.client.ForgeHooksClient;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import tconstruct.entity.projectile.DaggerEntity;
|
||||
import tconstruct.tools.entity.DaggerEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import net.minecraftforge.client.ForgeHooksClient;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import tconstruct.entity.projectile.DaggerEntity;
|
||||
import tconstruct.tools.entity.DaggerEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import tconstruct.entity.projectile.LaunchedPotion;
|
||||
import tconstruct.tools.entity.LaunchedPotion;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
||||
Reference in new issue
Block a user