Examples of ILensEffect


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

Examples of vazkii.botania.api.mana.ILensEffect

  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

Examples of vazkii.botania.api.mana.ILensEffect

      }

      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
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.