org.bukkit
Class Bukkit

java.lang.Object
  extended by org.bukkit.Bukkit

public final class Bukkit
extends Object

Represents the Bukkit core, for version and Server singleton handling


Method Summary
static boolean addRecipe(Recipe recipe)
           
static void banIP(String address)
           
static int broadcast(String message, String permission)
           
static int broadcastMessage(String message)
           
static void clearRecipes()
           
static void configureDbConfig(com.avaje.ebean.config.ServerConfig config)
           
static Inventory createInventory(InventoryHolder owner, int size)
           
static Inventory createInventory(InventoryHolder owner, int size, String title)
           
static Inventory createInventory(InventoryHolder owner, InventoryType type)
           
static MapView createMap(World world)
           
static World createWorld(WorldCreator options)
           
static boolean dispatchCommand(CommandSender sender, String commandLine)
           
static boolean getAllowEnd()
           
static boolean getAllowFlight()
           
static boolean getAllowNether()
           
static int getAmbientSpawnLimit()
           
static int getAnimalSpawnLimit()
           
static Set<OfflinePlayer> getBannedPlayers()
           
static String getBukkitVersion()
           
static Map<String,String[]> getCommandAliases()
           
static long getConnectionThrottle()
           
static ConsoleCommandSender getConsoleSender()
           
static GameMode getDefaultGameMode()
           
static boolean getGenerateStructures()
           
static HelpMap getHelpMap()
           
static String getIp()
           
static Set<String> getIPBans()
           
static ItemFactory getItemFactory()
           
static Logger getLogger()
           
static MapView getMap(short id)
           
static int getMaxPlayers()
           
static Messenger getMessenger()
           
static int getMonsterSpawnLimit()
           
static String getMotd()
           
static String getName()
           
static OfflinePlayer getOfflinePlayer(String name)
           
static OfflinePlayer[] getOfflinePlayers()
           
static boolean getOnlineMode()
           
static Player[] getOnlinePlayers()
           
static Set<OfflinePlayer> getOperators()
           
static Player getPlayer(String name)
           
static Player getPlayerExact(String name)
           
static PluginCommand getPluginCommand(String name)
           
static PluginManager getPluginManager()
           
static int getPort()
           
static List<Recipe> getRecipesFor(ItemStack result)
           
static BukkitScheduler getScheduler()
           
static Server getServer()
          Gets the current Server singleton
static String getServerId()
           
static String getServerName()
           
static ServicesManager getServicesManager()
           
static String getShutdownMessage()
           
static int getSpawnRadius()
           
static int getTicksPerAnimalSpawns()
           
static int getTicksPerMonsterSpawns()
           
static String getUpdateFolder()
           
static File getUpdateFolderFile()
           
static String getVersion()
           
static int getViewDistance()
           
static Warning.WarningState getWarningState()
           
static int getWaterAnimalSpawnLimit()
           
static Set<OfflinePlayer> getWhitelistedPlayers()
           
static World getWorld(String name)
           
static World getWorld(UUID uid)
           
static File getWorldContainer()
           
static List<World> getWorlds()
           
static String getWorldType()
           
static boolean hasWhitelist()
           
static boolean isHardcore()
           
static boolean isPrimaryThread()
           
static List<Player> matchPlayer(String name)
           
static Iterator<Recipe> recipeIterator()
           
static void reload()
           
static void reloadWhitelist()
           
static void resetRecipes()
           
static void savePlayers()
           
static void setDefaultGameMode(GameMode mode)
           
static void setServer(Server server)
          Attempts to set the Server singleton.
static void setSpawnRadius(int value)
           
static void setWhitelist(boolean value)
           
static void shutdown()
           
static void unbanIP(String address)
           
static boolean unloadWorld(String name, boolean save)
           
static boolean unloadWorld(World world, boolean save)
           
static boolean useExactLoginLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServer

public static Server getServer()
Gets the current Server singleton

Returns:
Server instance being ran

setServer

public static void setServer(Server server)
Attempts to set the Server singleton.

This cannot be done if the Server is already set.

Parameters:
server - Server instance

getName

public static String getName()

getVersion

public static String getVersion()

getBukkitVersion

public static String getBukkitVersion()

getOnlinePlayers

public static Player[] getOnlinePlayers()

getMaxPlayers

public static int getMaxPlayers()

getPort

public static int getPort()

getViewDistance

public static int getViewDistance()

getIp

public static String getIp()

getServerName

public static String getServerName()

getServerId

public static String getServerId()

getWorldType

public static String getWorldType()

getGenerateStructures

public static boolean getGenerateStructures()

getAllowNether

public static boolean getAllowNether()

hasWhitelist

public static boolean hasWhitelist()

broadcastMessage

public static int broadcastMessage(String message)

getUpdateFolder

public static String getUpdateFolder()

getPlayer

public static Player getPlayer(String name)

matchPlayer

public static List<Player> matchPlayer(String name)

getPluginManager

public static PluginManager getPluginManager()

getScheduler

public static BukkitScheduler getScheduler()

getServicesManager

public static ServicesManager getServicesManager()

getWorlds

public static List<World> getWorlds()

createWorld

public static World createWorld(WorldCreator options)

unloadWorld

public static boolean unloadWorld(String name,
                                  boolean save)

unloadWorld

public static boolean unloadWorld(World world,
                                  boolean save)

getWorld

public static World getWorld(String name)

getWorld

public static World getWorld(UUID uid)

getMap

public static MapView getMap(short id)

createMap

public static MapView createMap(World world)

reload

public static void reload()

getLogger

public static Logger getLogger()

getPluginCommand

public static PluginCommand getPluginCommand(String name)

savePlayers

public static void savePlayers()

dispatchCommand

public static boolean dispatchCommand(CommandSender sender,
                                      String commandLine)

configureDbConfig

public static void configureDbConfig(com.avaje.ebean.config.ServerConfig config)

addRecipe

public static boolean addRecipe(Recipe recipe)

getRecipesFor

public static List<Recipe> getRecipesFor(ItemStack result)

recipeIterator

public static Iterator<Recipe> recipeIterator()

clearRecipes

public static void clearRecipes()

resetRecipes

public static void resetRecipes()

getCommandAliases

public static Map<String,String[]> getCommandAliases()

getSpawnRadius

public static int getSpawnRadius()

setSpawnRadius

public static void setSpawnRadius(int value)

getOnlineMode

public static boolean getOnlineMode()

getAllowFlight

public static boolean getAllowFlight()

isHardcore

public static boolean isHardcore()

shutdown

public static void shutdown()

broadcast

public static int broadcast(String message,
                            String permission)

getOfflinePlayer

public static OfflinePlayer getOfflinePlayer(String name)

getPlayerExact

public static Player getPlayerExact(String name)

getIPBans

public static Set<String> getIPBans()

banIP

public static void banIP(String address)

unbanIP

public static void unbanIP(String address)

getBannedPlayers

public static Set<OfflinePlayer> getBannedPlayers()

setWhitelist

public static void setWhitelist(boolean value)

getWhitelistedPlayers

public static Set<OfflinePlayer> getWhitelistedPlayers()

reloadWhitelist

public static void reloadWhitelist()

getConsoleSender

public static ConsoleCommandSender getConsoleSender()

getOperators

public static Set<OfflinePlayer> getOperators()

getWorldContainer

public static File getWorldContainer()

getMessenger

public static Messenger getMessenger()

getAllowEnd

public static boolean getAllowEnd()

getUpdateFolderFile

public static File getUpdateFolderFile()

getConnectionThrottle

public static long getConnectionThrottle()

getTicksPerAnimalSpawns

public static int getTicksPerAnimalSpawns()

getTicksPerMonsterSpawns

public static int getTicksPerMonsterSpawns()

useExactLoginLocation

public static boolean useExactLoginLocation()

getDefaultGameMode

public static GameMode getDefaultGameMode()

setDefaultGameMode

public static void setDefaultGameMode(GameMode mode)

getOfflinePlayers

public static OfflinePlayer[] getOfflinePlayers()

createInventory

public static Inventory createInventory(InventoryHolder owner,
                                        InventoryType type)

createInventory

public static Inventory createInventory(InventoryHolder owner,
                                        int size)

createInventory

public static Inventory createInventory(InventoryHolder owner,
                                        int size,
                                        String title)

getHelpMap

public static HelpMap getHelpMap()

getMonsterSpawnLimit

public static int getMonsterSpawnLimit()

getAnimalSpawnLimit

public static int getAnimalSpawnLimit()

getWaterAnimalSpawnLimit

public static int getWaterAnimalSpawnLimit()

getAmbientSpawnLimit

public static int getAmbientSpawnLimit()

isPrimaryThread

public static boolean isPrimaryThread()

getMotd

public static String getMotd()

getShutdownMessage

public static String getShutdownMessage()

getWarningState

public static Warning.WarningState getWarningState()

getItemFactory

public static ItemFactory getItemFactory()


Copyright © 2013. All Rights Reserved.