Examples of IntVector3


Examples of com.bergerkiller.bukkit.common.bases.IntVector3

        commonPlayer.setHealth(data.getValue("HealF", (float) commonPlayer.getMaxHealth()));
      }
     
      // Respawn position
      String spawnWorld = data.getValue("SpawnWorld", "");
      IntVector3 spawn = null;
      if (!spawnWorld.isEmpty()) {
        Integer x = data.getValue("SpawnX", Integer.class);
        Integer y = data.getValue("SpawnY", Integer.class);
        Integer z = data.getValue("SpawnZ", Integer.class);
        if (x != null && y != null && z != null) {
          spawn = new IntVector3(x, y, z);
        } else {
          spawnWorld = ""; //reset, invalid coordinates
        }
      }
      EntityHumanRef.spawnCoord.set(playerHandle, spawn);
View Full Code Here

Examples of com.bergerkiller.bukkit.common.bases.IntVector3

  public VectorAbstract set(Vector value) {
    return set(value.getX(), value.getY(), value.getZ());
  }

  public IntVector3 floor() {
    return new IntVector3(x.getFloor(), y.getFloor(), z.getFloor());
  }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.bases.IntVector3

  public IntVector3 floor() {
    return new IntVector3(x.getFloor(), y.getFloor(), z.getFloor());
  }

  public IntVector3 block() {
    return new IntVector3(x.block(), y.block(), z.block());
  }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.bases.IntVector3

  public IntVectorAbstract set(IntVector3 value) {
    return set(value.x, value.y, value.z);
  }

  public IntVector3 vector() {
    return new IntVector3(getX(), getY(), getZ());
  }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.bases.IntVector3

    return new ChunkCoordinates(x, y, z);
  }

  public static IntVector3 getCoord(Object chunkCoordinates) {
    ChunkCoordinates coord = (ChunkCoordinates) chunkCoordinates;
    return new IntVector3(coord.x, coord.y, coord.z);
  }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.bases.IntVector3

    return new ChunkPosition(x, y, z);
  }

  public static IntVector3 getPosition(Object chunkPosition) {
    ChunkPosition position = (ChunkPosition) chunkPosition;
    return new IntVector3(position.x, position.y, position.z);
  }
View Full Code Here

Examples of org.spout.api.math.IntVector3

    offsetMax(maxOffset);
    return this;
  }

  public PieceCuboidBuilder offsetMin(int x, int y, int z) {
    offsetMin(new IntVector3(x, y, z));
    return this;
  }
View Full Code Here

Examples of org.spout.api.math.IntVector3

    offsetMin(new IntVector3(x, y, z));
    return this;
  }

  public PieceCuboidBuilder offsetMax(int x, int y, int z) {
    offsetMax(new IntVector3(x, y, z));
    return this;
  }
View Full Code Here

Examples of org.spout.api.math.IntVector3

    this.layout = layout;
    return this;
  }

  public PieceLayoutBuilder setPosition(int x, int y, int z) {
    setPosition(new IntVector3(x, y, z));
    return this;
  }
View Full Code Here

Examples of org.spout.api.math.IntVector3

    this.position.set(position);
    return this;
  }

  public PieceLayoutBuilder offsetPosition(int xOff, int yOff, int zOff) {
    offsetPosition(new IntVector3(xOff, yOff, zOff));
    return this;
  }
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.