Package com.bergerkiller.bukkit.common.bases

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


  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

  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

  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

    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

    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

TOP

Related Classes of com.bergerkiller.bukkit.common.bases.IntVector3

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.