Added a pumpkin gear which produces a constant 100 vel and torq for debug

This commit is contained in:
Robert S 2014-04-10 17:09:09 -04:00
parent 651f51c08b
commit 0503daadce
3 changed files with 17 additions and 0 deletions

View file

@ -62,6 +62,8 @@ public class ItemGear extends JItemMultiPart implements IHighlight
{
listToAddTo.add(new ItemStack(itemID, 1, i));
}
listToAddTo.add(new ItemStack(itemID, 1, 10));
}
@Override

View file

@ -69,6 +69,14 @@ public class PartGear extends PartMechanical implements IMultiBlockStructure<Par
torque = 0;
angularVelocity = 0;
}
else
{
if (tier == 10)
{
torque = 100;
angularVelocity = 100;
}
}
}
@Override
@ -83,6 +91,8 @@ public class PartGear extends PartMechanical implements IMultiBlockStructure<Par
return 0.02;
case 2:
return 0.01;
case 10:
return 0;
}
}
@ -98,6 +108,8 @@ public class PartGear extends PartMechanical implements IMultiBlockStructure<Par
return 0.02;
case 2:
return 0.01;
case 10:
return 0;
}
}

View file

@ -33,6 +33,9 @@ public class RenderGear implements ISimpleItemRenderer
case 2:
RenderUtility.bind(Reference.BLOCK_TEXTURE_DIRECTORY + "iron_block.png");
break;
case 10:
RenderUtility.bind(Reference.BLOCK_TEXTURE_DIRECTORY + "pumpkin_top.png");
break;
}
RenderUtility.rotateFaceBlockToSide(ForgeDirection.getOrientation(side));