Search in sources :

Example 26 with EntityDrone

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);
    }
}
Also used : AxisAlignedBB(net.minecraft.util.math.AxisAlignedBB) EntityProgrammableController(me.desht.pneumaticcraft.common.entity.EntityProgrammableController) EntityDrone(me.desht.pneumaticcraft.common.entity.living.EntityDrone)

Aggregations

EntityDrone (me.desht.pneumaticcraft.common.entity.living.EntityDrone)26 ItemStack (net.minecraft.item.ItemStack)10 Entity (net.minecraft.entity.Entity)6 BlockPos (net.minecraft.util.math.BlockPos)4 World (net.minecraft.world.World)4 AmadronOffer (me.desht.pneumaticcraft.common.recipes.AmadronOffer)3 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)3 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)3 IProgWidget (me.desht.pneumaticcraft.common.progwidgets.IProgWidget)2 Block (net.minecraft.block.Block)2 ItemBlock (net.minecraft.item.ItemBlock)2 TileEntity (net.minecraft.tileentity.TileEntity)2 EnumFacing (net.minecraft.util.EnumFacing)2 AxisAlignedBB (net.minecraft.util.math.AxisAlignedBB)2 FluidStack (net.minecraftforge.fluids.FluidStack)2 ArrayList (java.util.ArrayList)1 IEntityTrackEntry (me.desht.pneumaticcraft.api.client.pneumaticHelmet.IEntityTrackEntry)1 IGuiScreen (me.desht.pneumaticcraft.api.client.pneumaticHelmet.IGuiScreen)1 AmadronRetrievalEvent (me.desht.pneumaticcraft.api.drone.AmadronRetrievalEvent)1 EntityPathNavigateDrone (me.desht.pneumaticcraft.common.ai.EntityPathNavigateDrone)1