com.aranai.dungeonator
Class Dungeonator

java.lang.Object
  extended by org.bukkit.plugin.java.JavaPlugin
      extended by com.aranai.dungeonator.Dungeonator
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.plugin.Plugin

public class Dungeonator
extends org.bukkit.plugin.java.JavaPlugin

The Dungeonator JavaPlugin for Bukkit.


Field Summary
private  DungeonChunkEditor chunkEditor
          The dungeon chunk editor.
private  DungeonChunkManager chunkManager
          The dungeon chunk manager.
private  DungeonDataManager dataManager
          The dungeon data manager.
private  DungeonDataStore dataStore
          The dungeon data store.
 boolean flattenOn
          Debug field: flattenOn: to flatten, or not to flatten
private static java.util.logging.Logger log
           
private  DPlayerListener playerListener
          The player listener.
 int py
          Debug field: py: player y at time of flattening
private  DWorldListener worldListener
          The world listener.
 
Constructor Summary
Dungeonator()
          Instantiates the JavaPlugin.
 
Method Summary
 DungeonChunkEditor getChunkEditor()
          Gets the chunk editor.
 DungeonChunkManager getChunkManager()
          Gets the chunk manager.
static java.util.logging.Logger getLogger()
          Gets the Dungeonator logger instance.
 boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, java.lang.String commandLabel, java.lang.String[] args)
           
 void onDisable()
           
 void onEnable()
           
 
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfiguration, getDatabase, getDatabaseClasses, getDataFolder, getDescription, getFile, getPluginLoader, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onLoad, removeDDL, setEnabled, setNaggable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log

worldListener

private DWorldListener worldListener
The world listener. Used for detecting chunk load and unload events.


playerListener

private DPlayerListener playerListener
The player listener. Used for detecting player commands.


dataStore

private DungeonDataStore dataStore
The dungeon data store.


dataManager

private DungeonDataManager dataManager
The dungeon data manager.


chunkManager

private DungeonChunkManager chunkManager
The dungeon chunk manager.


chunkEditor

private DungeonChunkEditor chunkEditor
The dungeon chunk editor.


flattenOn

public boolean flattenOn
Debug field: flattenOn: to flatten, or not to flatten


py

public int py
Debug field: py: player y at time of flattening

Constructor Detail

Dungeonator

public Dungeonator()
Instantiates the JavaPlugin.

Method Detail

onDisable

public void onDisable()

onEnable

public void onEnable()

onCommand

public boolean onCommand(org.bukkit.command.CommandSender sender,
                         org.bukkit.command.Command command,
                         java.lang.String commandLabel,
                         java.lang.String[] args)
Specified by:
onCommand in interface org.bukkit.command.CommandExecutor
Overrides:
onCommand in class org.bukkit.plugin.java.JavaPlugin

getLogger

public static java.util.logging.Logger getLogger()
Gets the Dungeonator logger instance.

Returns:
the logger

getChunkManager

public DungeonChunkManager getChunkManager()
Gets the chunk manager.

Returns:
the chunk manager

getChunkEditor

public DungeonChunkEditor getChunkEditor()
Gets the chunk editor.

Returns:
the chunk editor