Examples of EffectIterator


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