Package org.spout.api.util.hashing

Examples of org.spout.api.util.hashing.Int10TripleHashed


  public void purgeSet(ChunkCuboidLightBufferWrapper<VanillaCuboidLightBuffer> light, TInt10TripleSet[] sets) {
    for (int i = 0; i < sets.length; i++) {
      TInt10TripleSet set = sets[i];
      TObjectHashIterator<Integer> itr = set.iterator();
      while (itr.hasNext()) {
        Int10TripleHashed hash = set.getHash();
        Integer key = itr.next();
        int x = hash.keyX(key);
        int y = hash.keyY(key);
        int z = hash.keyZ(key);
        int lightLevel = this.getLightLevel(light, x, y, z);
        if (lightLevel < i) {
          itr.remove();
        }
      }
View Full Code Here

TOP

Related Classes of org.spout.api.util.hashing.Int10TripleHashed

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.