Package uk.co.oliwali.HawkEye.entry

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


    DataManager.addEntry(new BlockEntry("Environment", DataType.BLOCK_BURN, event.getBlock()));
  }

  @HawkEvent(dataType = DataType.LEAF_DECAY)
  public void onLeavesDecay(LeavesDecayEvent event) {
    DataManager.addEntry(new SimpleRollbackEntry("Environment", DataType.LEAF_DECAY, event.getBlock().getLocation(), ""));
  }
View Full Code Here


      if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
        loc = block.getRelative(event.getBlockFace()).getLocation();
        switch (player.getItemInHand().getType()) {
          case FLINT_AND_STEEL:
            DataManager.addEntry(new SimpleRollbackEntry(player, DataType.FLINT_AND_STEEL, loc, ""));
            break;
          case LAVA_BUCKET:
            DataManager.addEntry(new SimpleRollbackEntry(player, DataType.LAVA_BUCKET, loc, ""));
            break;
          case WATER_BUCKET:
            DataManager.addEntry(new SimpleRollbackEntry(player, DataType.WATER_BUCKET, loc, ""));
            break;
        }
      }

    }
View Full Code Here

TOP

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

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.