mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 01:32:55 +00:00
32 lines
792 B
Java
32 lines
792 B
Java
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;
|
|
}
|
|
|
|
}
|