Package uk.co.oliwali.HawkEye

Examples of uk.co.oliwali.HawkEye.DataType


   * @param res
   * @return returns a {@link DataEntry}
   * @throws SQLException
   */
  public static DataEntry createEntryFromRes(ResultSet res) throws Exception {
    DataType type = DataType.fromId(res.getInt("action"));
    DataEntry entry = (DataEntry)type.getEntryClass().newInstance();
    entry.setPlayer(DataManager.getPlayer(res.getInt("player_id")));
    entry.setDate(res.getString("date"));
    entry.setDataId(res.getInt("data_id"));
    entry.setType(DataType.fromId(res.getInt("action")));
    entry.interpretSqlData(res.getString("data"));
View Full Code Here


  }

  @HawkEvent(dataType = {DataType.TREE_GROW, DataType.MUSHROOM_GROW})
  public void onStructureGrow(StructureGrowEvent event) {
    //Sort out structure type
    DataType type = DataType.TREE_GROW;
    if (event.getSpecies().name().toLowerCase().contains("mushroom")) type = DataType.MUSHROOM_GROW;

    //Loop through blocks
    for (BlockState block : event.getBlocks()) {
View Full Code Here

TOP

Related Classes of uk.co.oliwali.HawkEye.DataType

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.