Package org.spout.api.material.range

Examples of org.spout.api.material.range.EffectIterator


    }

    // Has nearby non-water blocks?
    final Random rand = GenericMath.getRandom();
    if (rand.nextInt(1000) == 0) {
      EffectIterator iterator = EffectRange.NEIGHBORS.iterator();
      while (iterator.hasNext()) {
        if (!(block.translate(iterator.next()).getMaterial() instanceof Water)) {
          //Make sure you don't eliminate water below
          Block below = block.translate(BlockFace.BOTTOM);
          if (below.getMaterial() == VanillaMaterials.WATER) {
            below.setMaterial(getStationaryMaterial());
          }
View Full Code Here

TOP

Related Classes of org.spout.api.material.range.EffectIterator

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.