Package com.tommytony.war.volume

Examples of com.tommytony.war.volume.Volume


  public void addTeamSpawn(Location teamSpawn) {
    if (!this.teamSpawns.contains(teamSpawn)) {
      this.teamSpawns.add(teamSpawn);
    }
    // this resets the block to old state
    this.setSpawnVolume(teamSpawn, new Volume(name + teamSpawns.indexOf(teamSpawn), warzone.getWorld()));
    this.createSpawnVolume(teamSpawn);
    this.spawnVolumes.get(teamSpawn).saveBlocks();

    this.initializeTeamSpawn(teamSpawn);
  }
View Full Code Here


    return this.flagVolume;
  }

  private void setFlagVolume() {
    if (this.flagVolume == null) {
      this.flagVolume = new Volume(this.getName() + "flag", this.warzone.getWorld());
    }
    if (this.flagVolume.isSaved()) {
      this.flagVolume.resetBlocks();
    }
    int x = this.teamFlag.getBlockX();
View Full Code Here

    this.flagVolume.setCornerTwo(this.warzone.getWorld().getBlockAt(x + 1, y + 3, z + 1));
  }

  public void initializeTeamFlag() {
    // make air (old two-high above floor)
    Volume airGap = new Volume(new Location(this.flagVolume.getWorld(),
        this.flagVolume.getCornerOne().getX(), this.flagVolume
            .getCornerOne().getY() + 1, this.flagVolume
            .getCornerOne().getZ()), new Location(
        this.flagVolume.getWorld(), this.flagVolume.getCornerTwo()
            .getX(), this.flagVolume.getCornerOne().getY() + 2,
        this.flagVolume.getCornerTwo().getZ()));
    airGap.setToMaterial(Material.AIR);

    // Set the flag blocks
    int x = this.teamFlag.getBlockX();
    int y = this.teamFlag.getBlockY();
    int z = this.teamFlag.getBlockZ();
View Full Code Here

*
*/
public class VolumeMapper {

  public static Volume loadVolume(String volumeName, String zoneName, World world) throws SQLException {
    Volume volume = new Volume(volumeName, world);
    VolumeMapper.load(volume, zoneName, world);
    return volume;
  }
View Full Code Here

      // lobby world
      String lobbyWorldName = warzoneRootSection.getString(lobbyPrefix + "world");
      World lobbyWorld = War.war.getServer().getWorld(lobbyWorldName);
           
      // create the lobby
      Volume lobbyVolume = null;
      try {
        lobbyVolume = warzone.loadStructure("lobby", lobbyWorld, connection);
      } catch (SQLException e) {
        War.war.getLogger().log(Level.WARNING, "Failed to load warzone lobby", e);
      }
View Full Code Here

TOP

Related Classes of com.tommytony.war.volume.Volume

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.