Package vazkii.botania.api.mana

Examples of vazkii.botania.api.mana.ILensEffect


      TileEntity tile = worldObj.getTileEntity(coords.posX, coords.posY, coords.posZ);
      if(tile != null && tile instanceof TileSpreader)
        ((TileSpreader) tile).canShootBurst = false;
    }

    ILensEffect lens = getLensInstance();
    if(lens != null)
      lens.updateBurst(this, getSourceLens());

    int mana = getMana();
    if(getTicksExisted() >= getMinManaLoss()) {
      accumulatedManaLoss += getManaLossPerTick();
      int loss = (int) accumulatedManaLoss;
View Full Code Here


  public void particles() {
    if(isDead || !worldObj.isRemote)
      return;

    ILensEffect lens = getLensInstance();
    if(lens != null && !lens.doParticles(this, getSourceLens()))
      return;

    Color color = new Color(getColor());
    float r = color.getRed() / 255F;
    float g = color.getGreen() / 255F;
View Full Code Here

      }

      collided = true;
    }

    ILensEffect lens = getLensInstance();
    if(lens != null)
      dead = lens.collideBurst(this, movingobjectposition, collidedTile != null && collidedTile instanceof IManaReceiver && ((IManaReceiver) collidedTile).canRecieveManaFromBursts(), dead, getSourceLens());

    if(collided && !hasAlreadyCollidedAt(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ))
      alreadyCollidedAt.add(getCollisionLocString(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ));

    if(dead && !isDead) {
View Full Code Here

TOP

Related Classes of vazkii.botania.api.mana.ILensEffect

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.