Package crazypants.enderio.power

Examples of crazypants.enderio.power.BasicCapacitor


    rangeSqu = range * range;

    BoundingBox bb = new BoundingBox(new BlockCoord(this));
    bb = bb.scale(range, range, range);
    attractorBounds = AxisAlignedBB.getBoundingBox(bb.minX, bb.minY, bb.minZ, bb.maxX, bb.maxY, bb.maxZ);
    capacitor = new BasicCapacitor(powerPerTick * 8, capacitorType.capacitor.getMaxEnergyStored(), powerPerTick);
  }
View Full Code Here


  private ICapacitor capacitor;

  private int energyStoredRF;

  public TileElectricLight() {
    capacitor = new BasicCapacitor(Capacitors.BASIC_CAPACITOR.capacitor.getMaxEnergyReceived(), 100);
    energyStoredRF = 0;
  }
View Full Code Here

      range = Config.spawnGuardRangeLevelOne;
      powerPerTick = Config.spawnGuardPowerPerTickLevelOne;
      break;
    }
    rangeSqu = range * range;   
    capacitor = new BasicCapacitor(powerPerTick * 8, capacitorType.capacitor.getMaxEnergyStored(), powerPerTick);
   
    BoundingBox bb = new BoundingBox(getLocation());
    bb = bb.scale(range + 0.5f, range + 0.5f, range + 0.5f).translate(0.5f, 0.5f, 0.5f);   
    bounds = AxisAlignedBB.getBoundingBox(bb.minX, bb.minY, bb.minZ, bb.maxX, bb.maxY, bb.maxZ);
  }
View Full Code Here

  @Override
  public void setCapacitor(Capacitors capacitorType) {   
    ICapacitor refCap = capacitorType.capacitor;   
    int maxUse = getPowerUsePerTick(capacitorType);
    int io = Math.max(maxUse, refCap.getMaxEnergyExtracted());
    capacitor = new BasicCapacitor(io * 4, refCap.getMaxEnergyStored(), io);
    super.setCapacitor(capacitorType);            
  }
View Full Code Here

    default:
      refCap = CAP_ONE;
      break;
    }   
    double multuplier = PoweredSpawnerConfig.getInstance().getCostMultiplierFor(logic.getEntityNameToSpawn());
    capacitor = new BasicCapacitor((int)(refCap.getMaxEnergyExtracted() * multuplier), refCap.getMaxEnergyStored());
    forceClientUpdate = true;
  }
View Full Code Here

 
  private int storedEnergyRF;

  public TileEntitySolarPanel() {
    checkOffset = (int) (Math.random() * 20);
    capacitor = new BasicCapacitor(0, 10000, Config.maxPhotovoltaicAdvancedOutputRF * 5);
  }
View Full Code Here

    currentTask = createTask();
   
    int ppt = getPowerUsePerTick();
    switch (capacitorType.ordinal()) {
    case 1:
      cap = new BasicCapacitor(ppt * 4, 500000);
      break;
    case 2:
      cap = new BasicCapacitor(ppt * 4, 1000000);
      break;
    default:
      cap = new BasicCapacitor(ppt * 4, 250000);
      break;
    }
   
  }
View Full Code Here

  static final String[] POSTFIX = new String[] { "", "Enhanced", "Ender" };

  static ICapacitor[] getCapacitors() {
    if(capacitors == null) {
      capacitors = new BasicCapacitor[] {
        new BasicCapacitor(Config.powerConduitTierOneRF, Config.powerConduitTierOneRF),
        new BasicCapacitor(Config.powerConduitTierTwoRF, Config.powerConduitTierTwoRF),
        new BasicCapacitor(Config.powerConduitTierThreeRF, Config.powerConduitTierThreeRF)
      };
    }
    return capacitors;
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.power.BasicCapacitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.