Package uk.co.oliwali.HawkEye.entry

Examples of uk.co.oliwali.HawkEye.entry.BlockEntry


  public void onBlockBreak(BlockBreakEvent event) {
    Block block = event.getBlock();
    if (block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST)
      DataManager.addEntry(new SignEntry(event.getPlayer(), DataType.SIGN_BREAK, event.getBlock()));
    else
      DataManager.addEntry(new BlockEntry(event.getPlayer(), DataType.BLOCK_BREAK, block));
  }
View Full Code Here


    DataManager.addEntry(new BlockChangeEntry("Environment", DataType.BLOCK_FADE, event.getBlock().getLocation(), event.getBlock().getState(), event.getNewState()));
  }

  @HawkEvent(dataType = DataType.BLOCK_BURN)
  public void onBlockBurn(BlockBurnEvent event) {
    DataManager.addEntry(new BlockEntry("Environment", DataType.BLOCK_BURN, event.getBlock()));
  }
View Full Code Here

  }

  @HawkEvent(dataType = DataType.EXPLOSION)
  public void onEntityExplode(EntityExplodeEvent event) {
    for (Block b : event.blockList().toArray(new Block[0]))
      DataManager.addEntry(new BlockEntry("Environment", DataType.EXPLOSION, b));
  }
View Full Code Here

    // Enderman picking up block
    if (event.getTo() == Material.AIR && Config.isLogged(DataType.ENDERMAN_PICKUP)) {
      if (block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST)
        DataManager.addEntry(new SignEntry("Environment", DataType.SIGN_BREAK, event.getBlock()));
      DataManager.addEntry(new BlockEntry("Environment", DataType.ENDERMAN_PICKUP, block));
    } else if (Config.isLogged(DataType.ENDERMAN_PLACE)) {
      // Enderman placing block
      Enderman enderman = (Enderman) event.getEntity();
      BlockState newState = block.getState();
      if (enderman.getCarriedMaterial() != null) {
View Full Code Here

TOP

Related Classes of uk.co.oliwali.HawkEye.entry.BlockEntry

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.