use of me.desht.pneumaticcraft.common.entity.living.EntityDrone in project pnc-repressurized by TeamPneumatic.
the class ModelDrone method render.
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
if (entity instanceof EntityProgrammableController)
f5 /= 2F;
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
if (entity != null)
RenderUtils.glColorHex(0xFF000000 + ((EntityDroneBase) entity).getDroneColor());
Base2.render(f5);
Base3.render(f5);
Base4.render(f5);
Base5.render(f5);
GL11.glColor4d(1, 1, 1, 1);
Base.render(f5);
Prop1Part1.render(f5);
Prop1Part2.render(f5);
Prop1Part3.render(f5);
Prop2Part1.render(f5);
Prop2Part2.render(f5);
Prop2Part3.render(f5);
Prop3Part1.render(f5);
Prop3Part2.render(f5);
Prop3Part3.render(f5);
Prop4Part1.render(f5);
Prop4Part2.render(f5);
Prop4Part3.render(f5);
Frame1.render(f5);
Frame2.render(f5);
LandingStand1.render(f5);
LandingStand2.render(f5);
LandingStand3.render(f5);
LandingStand4.render(f5);
LaserArm.render(f5);
LaserSource.render(f5);
if (entity instanceof EntityDrone && ((EntityDrone) entity).hasMinigun())
minigun.render(entity, f, f1, f2, f3, f4, f5);
if (isLogisticsDrone) {
GL11.glDisable(GL11.GL_TEXTURE_2D);
RenderUtils.glColorHex(0xFFFF0000);
double s = 3 / 16D;
double y = 17 / 16D;
SemiBlockRendererLogistics.renderFrame(new AxisAlignedBB(-s, y - s, -s, s, y + s, s), 1 / 32D);
GL11.glEnable(GL11.GL_TEXTURE_2D);
}
}
Aggregations