Package me.vudu.Conflict.util

Examples of me.vudu.Conflict.util.BlockLocation


      public void onBlockPlace(World world, int x, int y, int z, LivingEntity living) {
       
        SpoutPlayer player = (SpoutPlayer) living;
        //Artefakt Lvl 5 d�rfen nicht wieder platziert werden
        if(this.is5()){
          this.dontPlace = new BlockLocation(world.getName(), x, y, z);
          return;
        }
       
        //Nachricht, dass Artefakt gebaut wurde
        Location l = world.getBlockAt(x, y, z).getLocation();
View Full Code Here


      /**
       * entfernt den Timestamp-eintag aus der Liste
       */
      public void onBlockDestroyed(World world, int x, int y, int z) {
        for(BlockLocation bl: this.timestamps.keySet()){
          if(bl.equals(new BlockLocation(world.getName(), x, y, z))){
            removeTimestamp(bl)
          }
        }
       
       
View Full Code Here

       * @param y
       * @param z
       * @param player
       */
      private void artifactClicked(World world, int x, int y, int z, SpoutPlayer player){
        BlockLocation bl = new BlockLocation(world.getBlockAt(x, y, z).getLocation());
       
        if(this.stage==3){
          player.sendMessage("Artefakte der Stufe 3 k�nnen nicht beschleunigt werden");
          return;
        }
View Full Code Here

       * @param block Block, der gebaut wurde
       * @param timestamp zugeh�riger Timestamp
       */
      private void initTimestamp(org.bukkit.block.Block block, long timestamp){
        synchronized (this.timestamps){
          BlockLocation key = new  BlockLocation(block.getLocation());
          if(!(this.timestamps.containsKey(key))){
            this.timestamps.put(key, timestamp);
          }
         
        }
View Full Code Here

        loadCustomConfigElement("radarTowerRed", 0);
        loadCustomConfigElement("radarTowerBlue", 0);
       
         //Basen
         if (null != getCustomConfig().get("redBase") && getCustomConfig().getString("redBase").length()>0){
           ConflictPlugin.redBase = new BlockLocation(getCustomConfig().getString("redBase"));
         }
         if (null != getCustomConfig().get("blueBase") && getCustomConfig().getString("blueBase").length()>0){
           ConflictPlugin.blueBase = new BlockLocation(getCustomConfig().getString("blueBase"));
         }
       
         //speichern
          plugin.saveConfig();  
          saveCustomConfig();
View Full Code Here

TOP

Related Classes of me.vudu.Conflict.util.BlockLocation

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.