diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
| commit | 05c78126859231a68e199dc34613689bd0978e2f (patch) | |
| tree | 050bea104a18c72905095d29f31bec2935a27a24 /ihl/enviroment/LightBulbModel.java | |
Initial commit
Diffstat (limited to 'ihl/enviroment/LightBulbModel.java')
| -rw-r--r-- | ihl/enviroment/LightBulbModel.java | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ihl/enviroment/LightBulbModel.java b/ihl/enviroment/LightBulbModel.java new file mode 100644 index 0000000..710d7fb --- /dev/null +++ b/ihl/enviroment/LightBulbModel.java @@ -0,0 +1,59 @@ +package ihl.enviroment; + +import ihl.model.IHLModelRenderer; +import net.minecraft.client.model.ModelBase; +import net.minecraftforge.common.util.ForgeDirection; + +public class LightBulbModel extends ModelBase +{ + //fields + IHLModelRenderer Base; + IHLModelRenderer BaseON; + + public LightBulbModel() + { + textureWidth = 32; + textureHeight = 32; + setTextureOffset("Base.Shape1", 0, 19); + setTextureOffset("Base.TubeNorth", 20, 0); + setTextureOffset("Base.CylinderNorth", 0, 0); + setTextureOffset("Base.CylinderNorth2", 0, 0); + setTextureOffset("Base.SpyralNorth", 16, 24); + + setTextureOffset("BaseON.Shape1", 0, 19); + setTextureOffset("BaseON.TubeNorth", 20, 0); + setTextureOffset("BaseON.CylinderNorth", 0, 9); + setTextureOffset("BaseON.CylinderNorth2", 10, 10); + setTextureOffset("BaseON.SpyralNorth", 0, 24); + + Base = new IHLModelRenderer(this, "Base"); + Base.setRotationPoint(0F, 16F, 0F); + Base.mirror = true; + Base.addBox("Shape1", -2F, -2F, 7F, 4, 4, 1); + Base.addTube("TubeNorth", -2F, -2F, 5F, 4, 4, 2, 0.8f, 1f, ForgeDirection.NORTH); + Base.drawFromInside = true; + Base.addTube("CylinderNorth", -1.5F, -1.5F, 0F, 3, 3, 7, 0f, 1f, ForgeDirection.NORTH); + Base.addTube("CylinderNorth2", -1F, -1F, 0.5F, 2, 2, 5, 0f, 1f, ForgeDirection.NORTH); + Base.drawFromInside = false; + Base.addTube("SpyralNorth", -0.5F, -0.5F, 0.5F, 1, 1, 7, 0f, 1f, ForgeDirection.NORTH); + + BaseON = new IHLModelRenderer(this, "BaseON"); + BaseON.setRotationPoint(0F, 16F, 0F); + BaseON.mirror = true; + BaseON.addBox("Shape1", -2F, -2F, 7F, 4, 4, 1); + BaseON.addTube("TubeNorth", -2F, -2F, 5F, 4, 4, 2, 0.8f, 1f, ForgeDirection.NORTH); + BaseON.drawFromInside = true; + BaseON.addTube("CylinderNorth", -1.5F, -1.5F, 0F, 3, 3, 7, 0f, 1f, ForgeDirection.NORTH); + BaseON.addTube("CylinderNorth2", -1F, -1F, 0.5F, 2, 2, 5, 0f, 1f, ForgeDirection.NORTH); + BaseON.drawFromInside = false; + BaseON.addTube("SpyralNorth", -0.5F, -0.5F, 0.5F, 1, 1, 7, 0f, 1f, ForgeDirection.NORTH); + } + + private void setRotation(IHLModelRenderer model, float x, float y, float z) + { + model.rotateAngleX = x; + model.rotateAngleY = y; + model.rotateAngleZ = z; + } + +} |
