Examples of ISparkEntity


Examples of vazkii.botania.api.mana.spark.ISparkEntity

      int id = Integer.parseInt(s);
      boolean added = false;
      Entity e = worldObj.getEntityByID(id);
      if(e != null && e instanceof ISparkEntity) {
        ISparkEntity spark = (ISparkEntity) e;
        if(spark != this && !spark.areIncomingTransfersDone() && spark.getAttachedTile() != null && !spark.getAttachedTile().isFull() && (getUpgrade() == 0 && spark.getUpgrade() == 2 || getUpgrade() == 3 && (spark.getUpgrade() == 0 || spark.getUpgrade() == 1) || !(spark.getAttachedTile() instanceof IManaPool))) {
          entities.add((ISparkEntity) e);
          added = true;
        }
      }
View Full Code Here

Examples of vazkii.botania.api.mana.spark.ISparkEntity

        for(int[] pylon : PYLON_LOCATIONS[getBlockMetadata()])
          ((TilePylon) worldObj.getTileEntity(xCoord + pylon[0], yCoord + pylon[1], zCoord + pylon[2])).activated = false;

        advanceStage();
      } else {
        ISparkEntity spark = getAttachedSpark();
        if(spark != null) {
          List<ISparkEntity> sparkEntities = SparkHelper.getSparksAround(worldObj, xCoord + 0.5, yCoord + 0.5, zCoord + 0.5);
          for(ISparkEntity otherSpark : sparkEntities) {
            if(spark == otherSpark)
              continue;
View Full Code Here

Examples of vazkii.botania.api.mana.spark.ISparkEntity

   
    if(hasValidPlatform()) {
      List<EntityItem> items = getItems();
      if(areItemsValid(items)) {
        removeMana = false;
        ISparkEntity spark = getAttachedSpark();
        if(spark != null) {
          List<ISparkEntity> sparkEntities = SparkHelper.getSparksAround(worldObj, xCoord + 0.5, yCoord + 0.5, zCoord + 0.5);
          for(ISparkEntity otherSpark : sparkEntities) {
            if(spark == otherSpark)
              continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.