mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Move the teru teru bozu model out of asset space.
This commit is contained in:
1 parent
54bc217558
commit
9124e4f77f
1 file changed
+14
-10
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* This class was created by <wiiv>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [? (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.model;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelTeruTeruBozu extends ModelBase {
|
||||
|
||||
public ModelRenderer shape1;
|
||||
public ModelRenderer shape1_1;
|
||||
public ModelRenderer shape1_2;
|
||||
public ModelRenderer shape1_3;
|
||||
|
||||
public ModelTeruTeruBozu() {
|
||||
this.textureWidth = 48;
|
||||
this.textureHeight = 32;
|
||||
this.shape1_3 = new ModelRenderer(this, 0, 12);
|
||||
this.shape1_3.setRotationPoint(0.0F, 14.5F, 0.0F);
|
||||
this.shape1_3.addBox(0.0F, 0.0F, 0.0F, 6, 6, 6, 0.0F);
|
||||
this.setRotateAngle(shape1_3, -2.1816615649929116F, -0.9599310885968813F, 1.3962634015954636F);
|
||||
this.shape1_1 = new ModelRenderer(this, 0, 24);
|
||||
this.shape1_1.setRotationPoint(0.0F, 14.0F, 0.0F);
|
||||
this.shape1_1.addBox(-1.0F, 0.0F, -1.0F, 2, 1, 2, 0.0F);
|
||||
this.shape1 = new ModelRenderer(this, 0, 0);
|
||||
this.shape1.setRotationPoint(0.0F, 14.5F, 0.0F);
|
||||
this.shape1.addBox(-3.0F, -6.0F, -3.0F, 6, 6, 6, 0.0F);
|
||||
this.setRotateAngle(shape1, -0.17453292519943295F, 0.0F, 0.0F);
|
||||
this.shape1_2 = new ModelRenderer(this, 0, 0);
|
||||
this.shape1_2.setRotationPoint(0.0F, 14.5F, 0.0F);
|
||||
this.shape1_2.addBox(-3.0F, -6.0F, -3.0F, 6, 6, 6, 0.0F);
|
||||
this.setRotateAngle(shape1_2, -0.17453292519943295F, 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
this.shape1_3.render(f5);
|
||||
this.shape1_1.render(f5);
|
||||
this.shape1.render(f5);
|
||||
this.shape1_2.render(f5);
|
||||
}
|
||||
|
||||
public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
|
||||
modelRenderer.rotateAngleX = x;
|
||||
modelRenderer.rotateAngleY = y;
|
||||
modelRenderer.rotateAngleZ = z;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user