mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Merge branch 'master' of https://github.com/aidancbrady/Mekanism
Conflicts: common/mekanism/client/RenderMechanicalPipe.java common/mekanism/common/BlockBasic.java
This commit is contained in:
commit
26e86c8eee
2 files changed
+9
-7
No files matched your search
@@ -28,6 +28,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
public class ItemRenderingHandler implements IItemRenderer
|
||||
{
|
||||
public ModelRobit robit = new ModelRobit();
|
||||
public ModelChest electricChest = new ModelChest();
|
||||
|
||||
@Override
|
||||
public boolean handleRenderType(ItemStack item, ItemRenderType type)
|
||||
@@ -59,7 +60,6 @@ public class ItemRenderingHandler implements IItemRenderer
|
||||
else if(item.getItem() instanceof ItemBlockMachine && item.getItemDamage() == MachineType.ELECTRIC_CHEST.meta)
|
||||
{
|
||||
IElectricChest chest = (IElectricChest)item.getItem();
|
||||
ModelChest electricChest = new ModelChest();
|
||||
|
||||
GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
|
||||
@@ -141,6 +141,13 @@ public class ModelBioGenerator extends ModelBase
|
||||
PISTON_BODY.setTextureSize(128, 128);
|
||||
PISTON_BODY.mirror = true;
|
||||
setRotation(PISTON_BODY, 0F, 0F, 0F);
|
||||
PISTON_HEAD_MOVES = new ModelRenderer(this, 8, 50);
|
||||
PISTON_HEAD_MOVES.addBox(0F, 0F, 0F, 4, 2, 4);
|
||||
PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F, -7F);
|
||||
PISTON_HEAD_MOVES.setTextureSize(128, 128);
|
||||
PISTON_HEAD_MOVES.mirror = true;
|
||||
setRotation(PISTON_HEAD_MOVES, 0F, 0F, 0F);
|
||||
|
||||
}
|
||||
|
||||
public void render(float size, float depth)
|
||||
@@ -162,12 +169,7 @@ public class ModelBioGenerator extends ModelBase
|
||||
FUEL_OUTLET_2.render(size);
|
||||
PLUG_PANEL.render(size);
|
||||
|
||||
PISTON_HEAD_MOVES = new ModelRenderer(this, 8, 50);
|
||||
PISTON_HEAD_MOVES.addBox(0F, depth, 0F, 4, 2, 4);
|
||||
PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F, -7F);
|
||||
PISTON_HEAD_MOVES.setTextureSize(128, 128);
|
||||
PISTON_HEAD_MOVES.mirror = true;
|
||||
setRotation(PISTON_HEAD_MOVES, 0F, 0F, 0F);
|
||||
PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F+depth, -7F);
|
||||
|
||||
PISTON_HEAD_MOVES.render(size);
|
||||
PISTON_ARM_MOVES.render(size);
|
||||
|
||||
Reference in new issue
Block a user