Search in sources :

Example 1 with RenderDrone

use of pneumaticCraft.client.render.entity.RenderDrone in project PneumaticCraft by MineMaarten.

the class RenderProgrammableController method renderTileEntityAt.

/*
     * TileEntitySpecialRenderer part
     */
@Override
public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) {
    if (renderDrone == null) {
        renderDrone = new RenderDrone(false);
        renderDrone.setRenderManager(RenderManager.instance);
        drone = new EntityDrone(tileentity.getWorldObj());
    }
    TileEntityProgrammableController te = (TileEntityProgrammableController) tileentity;
    double droneX = te.oldCurX + (te.getPosition().xCoord - te.oldCurX) * f - te.xCoord + 0.5 + d0;
    double droneY = te.oldCurY + (te.getPosition().yCoord - te.oldCurY) * f - te.yCoord - 0.2 + d1;
    double droneZ = te.oldCurZ + (te.getPosition().zCoord - te.oldCurZ) * f - te.zCoord + 0.5 + d2;
    renderDrone.doRender((Entity) drone, droneX, droneY, droneZ, 0, f);
}
Also used : TileEntityProgrammableController(pneumaticCraft.common.tileentity.TileEntityProgrammableController) EntityDrone(pneumaticCraft.common.entity.living.EntityDrone) RenderDrone(pneumaticCraft.client.render.entity.RenderDrone)

Example 2 with RenderDrone

use of pneumaticCraft.client.render.entity.RenderDrone in project PneumaticCraft by MineMaarten.

the class ClientProxy method registerRenders.

@Override
public void registerRenders() {
    SPECIAL_RENDER_TYPE_VALUE = RenderingRegistry.getNextAvailableRenderId();
    blockRenderers.add(new RenderElevatorFrame());
    blockRenderers.add(new RenderChargingStationPad());
    for (ISBRHPneumatic renderer : blockRenderers) {
        RenderingRegistry.registerBlockHandler(renderer);
    }
    RenderingRegistry.registerBlockHandler(new RenderModelBase());
    // RenderingRegistry.registerBlockHandler(new RendererSpecialBlock());
    registerBaseModelRenderer(Blockss.airCompressor, TileEntityAirCompressor.class, new ModelAirCompressor("airCompressor"));
    registerBaseModelRenderer(Blockss.advancedAirCompressor, TileEntityAdvancedAirCompressor.class, new ModelAirCompressor("advancedAirCompressor"));
    registerBaseModelRenderer(Blockss.assemblyController, TileEntityAssemblyController.class, new ModelAssemblyController());
    registerBaseModelRenderer(Blockss.assemblyDrill, TileEntityAssemblyDrill.class, new ModelAssemblyDrill());
    registerBaseModelRenderer(Blockss.assemblyIOUnit, TileEntityAssemblyIOUnit.class, new ModelAssemblyIOUnit());
    registerBaseModelRenderer(Blockss.assemblyLaser, TileEntityAssemblyLaser.class, new ModelAssemblyLaser());
    registerBaseModelRenderer(Blockss.assemblyPlatform, TileEntityAssemblyPlatform.class, new ModelAssemblyPlatform());
    registerBaseModelRenderer(Blockss.chargingStation, TileEntityChargingStation.class, new ModelChargingStation());
    registerBaseModelRenderer(Blockss.creativeCompressor, TileEntityCreativeCompressor.class, new BaseModel("creativeCompressor.obj"));
    registerBaseModelRenderer(Blockss.electrostaticCompressor, TileEntityElectrostaticCompressor.class, new BaseModel("electrostaticCompressor.obj"));
    registerBaseModelRenderer(Blockss.elevatorBase, TileEntityElevatorBase.class, new ModelElevatorBase());
    registerBaseModelRenderer(Blockss.pneumaticDoor, TileEntityPneumaticDoor.class, new ModelPneumaticDoor());
    registerBaseModelRenderer(Blockss.pneumaticDoorBase, TileEntityPneumaticDoorBase.class, new ModelPneumaticDoorBase());
    registerBaseModelRenderer(Blockss.pressureChamberInterface, TileEntityPressureChamberInterface.class, new ModelPressureChamberInterface());
    registerBaseModelRenderer(Blockss.securityStation, TileEntitySecurityStation.class, new ModelComputer(Textures.MODEL_SECURITY_STATION));
    registerBaseModelRenderer(Blockss.universalSensor, TileEntityUniversalSensor.class, new ModelUniversalSensor());
    registerBaseModelRenderer(Blockss.uvLightBox, TileEntityUVLightBox.class, new ModelUVLightBox());
    registerBaseModelRenderer(Blockss.vacuumPump, TileEntityVacuumPump.class, new ModelVacuumPump());
    registerBaseModelRenderer(Blockss.omnidirectionalHopper, TileEntityOmnidirectionalHopper.class, new ModelOmnidirectionalHopper(Textures.MODEL_OMNIDIRECTIONAL_HOPPER));
    registerBaseModelRenderer(Blockss.liquidHopper, TileEntityLiquidHopper.class, new ModelLiquidHopper());
    registerBaseModelRenderer(Blockss.programmer, TileEntityProgrammer.class, new ModelComputer(Textures.MODEL_PROGRAMMER));
    registerBaseModelRenderer(Blockss.plasticMixer, TileEntityPlasticMixer.class, new ModelPlasticMixer());
    registerBaseModelRenderer(Blockss.liquidCompressor, TileEntityLiquidCompressor.class, new BaseModel("liquidCompressor.obj"));
    registerBaseModelRenderer(Blockss.advancedLiquidCompressor, TileEntityAdvancedLiquidCompressor.class, new BaseModel("liquidCompressor.obj", "advancedLiquidCompressor.png"));
    registerBaseModelRenderer(Blockss.heatSink, TileEntityHeatSink.class, new ModelHeatSink());
    registerBaseModelRenderer(Blockss.vortexTube, TileEntityVortexTube.class, new ModelVortexTube());
    registerBaseModelRenderer(Blockss.thermopneumaticProcessingPlant, TileEntityThermopneumaticProcessingPlant.class, new ModelThermopneumaticProcessingPlant());
    registerBaseModelRenderer(Blockss.refinery, TileEntityRefinery.class, new ModelRefinery());
    registerBaseModelRenderer(Blockss.gasLift, TileEntityGasLift.class, new ModelGasLift());
    registerBaseModelRenderer(Blockss.keroseneLamp, TileEntityKeroseneLamp.class, new ModelKeroseneLamp());
    registerBaseModelRenderer(Blockss.sentryTurret, TileEntitySentryTurret.class, new ModelSentryTurret());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPressureTube.class, new RenderPressureTube());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAirCannon.class, new RenderAirCannon());
    // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElevatorBase.class, new RenderElevatorBase());
    // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAdvancedPressureTube.class, new RenderAdvancedPressureTube());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAphorismTile.class, new RenderAphorismTile());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElevatorCaller.class, new RenderElevatorCaller());
    // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityProgrammableController.class, new RenderProgrammableController());
    // ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySentryTurret.class, new RenderSentryTurret());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.pressureTube), new RenderItemPressureTube(false));
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.advancedPressureTube), new RenderItemPressureTube(true));
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.airCannon), new RenderModelBase(new ModelAirCannon()));
    MinecraftForgeClient.registerItemRenderer(Itemss.vortexCannon, new RenderItemVortexCannon());
    // MinecraftForgeClient.registerItemRenderer(Blocks.elevatorBase, new RenderItemElevatorBase());
    MinecraftForgeClient.registerItemRenderer(Itemss.cannonBarrel, new RenderItemCannonParts(false));
    MinecraftForgeClient.registerItemRenderer(Itemss.stoneBase, new RenderItemCannonParts(true));
    MinecraftForgeClient.registerItemRenderer(Itemss.pneumaticCylinder, new RenderItemPneumaticCilinder());
    //   MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.advancedPressureTube), new RenderItemAdvancedPressureTube());
    MinecraftForgeClient.registerItemRenderer(Itemss.drone, new RenderItemDrone(false));
    MinecraftForgeClient.registerItemRenderer(Itemss.logisticsDrone, new RenderItemDrone(true));
    MinecraftForgeClient.registerItemRenderer(Itemss.programmingPuzzle, new RenderItemProgrammingPuzzle());
    MinecraftForgeClient.registerItemRenderer(Itemss.minigun, new RenderItemMinigun());
    if (Config.useHelmetModel)
        MinecraftForgeClient.registerItemRenderer(Itemss.pneumaticHelmet, new RenderItemPneumaticHelmet());
    RenderingRegistry.registerEntityRenderingHandler(EntityVortex.class, new RenderEntityVortex());
    RenderingRegistry.registerEntityRenderingHandler(EntityChopperSeeds.class, new RenderEntityChopperSeeds());
    RenderingRegistry.registerEntityRenderingHandler(EntityPotionCloud.class, new RenderEntityPotionCloud());
    RenderingRegistry.registerEntityRenderingHandler(EntityDrone.class, new RenderDrone(false));
    RenderingRegistry.registerEntityRenderingHandler(EntityLogisticsDrone.class, new RenderDrone(true));
    RenderingRegistry.registerEntityRenderingHandler(EntityProgrammableController.class, new RenderDrone(false));
    RenderingRegistry.registerEntityRenderingHandler(EntityRing.class, new RenderEntityRing());
    EntityRegistry.registerModEntity(EntityRing.class, "Ring", 100, PneumaticCraft.instance, 80, 1, true);
    registerModuleRenderers();
    super.registerRenders();
}
Also used : ModelRefinery(pneumaticCraft.client.model.ModelRefinery) RenderEntityChopperSeeds(pneumaticCraft.client.render.entity.RenderEntityChopperSeeds) ModelComputer(pneumaticCraft.client.model.ModelComputer) ModelAssemblyLaser(pneumaticCraft.client.model.ModelAssemblyLaser) RenderItemPressureTube(pneumaticCraft.client.render.itemblock.RenderItemPressureTube) ModelPlasticMixer(pneumaticCraft.client.model.ModelPlasticMixer) ModelAirCompressor(pneumaticCraft.client.model.ModelAirCompressor) ModelVortexTube(pneumaticCraft.client.model.ModelVortexTube) ModelAssemblyController(pneumaticCraft.client.model.ModelAssemblyController) ModelPressureChamberInterface(pneumaticCraft.client.model.ModelPressureChamberInterface) ModelAssemblyIOUnit(pneumaticCraft.client.model.ModelAssemblyIOUnit) RenderItemDrone(pneumaticCraft.client.render.item.RenderItemDrone) ModelChargingStation(pneumaticCraft.client.model.ModelChargingStation) RenderPressureTube(pneumaticCraft.client.render.tileentity.RenderPressureTube) RenderAphorismTile(pneumaticCraft.client.render.tileentity.RenderAphorismTile) IBaseModel(pneumaticCraft.client.model.IBaseModel) BaseModel(pneumaticCraft.client.model.BaseModel) ModelSentryTurret(pneumaticCraft.client.model.ModelSentryTurret) RenderChargingStationPad(pneumaticCraft.client.render.block.RenderChargingStationPad) RenderItemPneumaticCilinder(pneumaticCraft.client.render.item.RenderItemPneumaticCilinder) RenderItemMinigun(pneumaticCraft.client.render.item.RenderItemMinigun) RenderEntityRing(pneumaticCraft.client.render.entity.RenderEntityRing) ModelHeatSink(pneumaticCraft.client.model.ModelHeatSink) ModelGasLift(pneumaticCraft.client.model.ModelGasLift) RenderAirCannon(pneumaticCraft.client.render.tileentity.RenderAirCannon) ModelUVLightBox(pneumaticCraft.client.model.ModelUVLightBox) RenderItemProgrammingPuzzle(pneumaticCraft.client.render.item.RenderItemProgrammingPuzzle) ModelAssemblyDrill(pneumaticCraft.client.model.ModelAssemblyDrill) ModelAssemblyPlatform(pneumaticCraft.client.model.ModelAssemblyPlatform) ModelKeroseneLamp(pneumaticCraft.client.model.ModelKeroseneLamp) ModelAirCannon(pneumaticCraft.client.model.ModelAirCannon) RenderEntityVortex(pneumaticCraft.client.render.entity.RenderEntityVortex) ModelElevatorBase(pneumaticCraft.client.model.ModelElevatorBase) ISBRHPneumatic(pneumaticCraft.client.render.block.ISBRHPneumatic) RenderItemCannonParts(pneumaticCraft.client.render.item.RenderItemCannonParts) RenderEntityPotionCloud(pneumaticCraft.client.render.entity.RenderEntityPotionCloud) RenderItemPneumaticHelmet(pneumaticCraft.client.render.item.RenderItemPneumaticHelmet) RenderElevatorCaller(pneumaticCraft.client.render.tileentity.RenderElevatorCaller) RenderDrone(pneumaticCraft.client.render.entity.RenderDrone) RenderItemVortexCannon(pneumaticCraft.client.render.item.RenderItemVortexCannon) RenderElevatorFrame(pneumaticCraft.client.render.block.RenderElevatorFrame) ModelPneumaticDoor(pneumaticCraft.client.model.ModelPneumaticDoor) ModelLiquidHopper(pneumaticCraft.client.model.ModelLiquidHopper) ModelOmnidirectionalHopper(pneumaticCraft.client.model.ModelOmnidirectionalHopper) ModelUniversalSensor(pneumaticCraft.client.model.ModelUniversalSensor) ModelVacuumPump(pneumaticCraft.client.model.ModelVacuumPump) RenderModelBase(pneumaticCraft.client.render.tileentity.RenderModelBase) ModelPneumaticDoorBase(pneumaticCraft.client.model.ModelPneumaticDoorBase) ModelThermopneumaticProcessingPlant(pneumaticCraft.client.model.ModelThermopneumaticProcessingPlant)

Aggregations

RenderDrone (pneumaticCraft.client.render.entity.RenderDrone)2 BaseModel (pneumaticCraft.client.model.BaseModel)1 IBaseModel (pneumaticCraft.client.model.IBaseModel)1 ModelAirCannon (pneumaticCraft.client.model.ModelAirCannon)1 ModelAirCompressor (pneumaticCraft.client.model.ModelAirCompressor)1 ModelAssemblyController (pneumaticCraft.client.model.ModelAssemblyController)1 ModelAssemblyDrill (pneumaticCraft.client.model.ModelAssemblyDrill)1 ModelAssemblyIOUnit (pneumaticCraft.client.model.ModelAssemblyIOUnit)1 ModelAssemblyLaser (pneumaticCraft.client.model.ModelAssemblyLaser)1 ModelAssemblyPlatform (pneumaticCraft.client.model.ModelAssemblyPlatform)1 ModelChargingStation (pneumaticCraft.client.model.ModelChargingStation)1 ModelComputer (pneumaticCraft.client.model.ModelComputer)1 ModelElevatorBase (pneumaticCraft.client.model.ModelElevatorBase)1 ModelGasLift (pneumaticCraft.client.model.ModelGasLift)1 ModelHeatSink (pneumaticCraft.client.model.ModelHeatSink)1 ModelKeroseneLamp (pneumaticCraft.client.model.ModelKeroseneLamp)1 ModelLiquidHopper (pneumaticCraft.client.model.ModelLiquidHopper)1 ModelOmnidirectionalHopper (pneumaticCraft.client.model.ModelOmnidirectionalHopper)1 ModelPlasticMixer (pneumaticCraft.client.model.ModelPlasticMixer)1 ModelPneumaticDoor (pneumaticCraft.client.model.ModelPneumaticDoor)1