Examples of MutableIntegerVector


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

Examples of org.spoutcraft.api.util.MutableIntegerVector

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