Package vazkii.botania.api.mana

Examples of vazkii.botania.api.mana.IManaReceiver


                  int magZ = entity.getEntityData().getInteger("Botania:MagnetizedZ");
                  if(tile.xCoord != magX || tile.yCoord != magY || tile.zCoord != magZ)
                    continue;
                }

                IManaReceiver receiver = (IManaReceiver) tile;

                ChunkCoordinates srcCoords = burst.getBurstSourceChunkCoordinates();

                if(MathHelper.pointDistanceSpace(tile.xCoord, tile.yCoord, tile.zCoord, srcCoords.posX, srcCoords.posY, srcCoords.posZ) > 3 && receiver.canRecieveManaFromBursts() && !receiver.isFull()) {
                  Vector3 burstVec = Vector3.fromEntity(entity);
                  Vector3 tileVec = Vector3.fromTileEntityCenter(tile).add(0, -0.1, 0);
                  Vector3 motionVec = new Vector3(entity.motionX, entity.motionY, entity.motionZ);

                  Vector3 normalMotionVec = motionVec.copy().normalize();
View Full Code Here


  public void updateEntity() {
    validPools.clear();
    for(ForgeDirection dir : LibMisc.CARDINAL_DIRECTIONS) {
      TileEntity tileAt = worldObj.getTileEntity(xCoord + dir.offsetX, yCoord, zCoord + dir.offsetZ);
      if(tileAt != null && tileAt instanceof IManaPool) {
        IManaReceiver receiver = (IManaReceiver) tileAt;
        if(!receiver.isFull())
          validPools.add(receiver);
      }
    }
  }
View Full Code Here

TOP

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

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.