Package org.spoutcraft.api.util

Examples of org.spoutcraft.api.util.MutableIntegerVector


    lightSourceZOffset[quad] = z;
    return this;
  }

  public MutableIntegerVector getLightSource(int quad, int x, int y, int z) {
    MutableIntegerVector blockVector = new MutableIntegerVector(x + lightSourceXOffset[quad], y + lightSourceYOffset[quad], z + lightSourceZOffset[quad]);
    return blockVector;
  }
View Full Code Here


    } else {
      internalLightLevel = world.getMixedBrightnessAt(block, x, y, z);
    }

    for (int i = 0; i < getX().length; i++) {
      MutableIntegerVector sourceBlock = getLightSource(i, x, y, z);

      int sideBrightness;

      if (block != null && sourceBlock != null) {
        sideBrightness = world.getMixedBrightnessAt(block, sourceBlock.getBlockX(), sourceBlock.getBlockY(), sourceBlock.getBlockZ());
      } else {
        sideBrightness = internalLightLevel;
      }

      if (block == null) {
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.util.MutableIntegerVector

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.