1.7.10 Files

Files added
This commit is contained in:
KAMKEEL committed 2018-09-13 12:03:28 -04:00
1 parent 393ea9b463
commit a31efb2dc3
1768 files changed
+84831

No files matched your search

@@ -0,0 +1,31 @@
package noppes.npcs.client.model.blocks;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelBeam extends ModelBase {
ModelRenderer Bar;
public ModelBeam() {
Bar = new ModelRenderer(this, 6, 6);
Bar.addBox(0F, 0F, 0F, 5, 5, 12);
Bar.setRotationPoint(-2.5F, 13.5F, -4F);
Bar.setTextureSize(64, 32);
Bar.mirror = true;
setRotation(Bar, 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);
Bar.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z) {
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}