Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.Bukkit Class Reference

Static Public Member Functions

static Server getServer ()
 
static void setServer (Server server)
 
static String getName ()
 
static String getVersion ()
 
static String getBukkitVersion ()
 
static Player[] getOnlinePlayers ()
 
static int getMaxPlayers ()
 
static int getPort ()
 
static int getViewDistance ()
 
static String getIp ()
 
static String getServerName ()
 
static String getServerId ()
 
static String getWorldType ()
 
static boolean getGenerateStructures ()
 
static boolean getAllowNether ()
 
static boolean hasWhitelist ()
 
static int broadcastMessage (String message)
 
static String getUpdateFolder ()
 
static Player getPlayer (String name)
 
static List< PlayermatchPlayer (String name)
 
static Player getPlayer (UUID id)
 
static PluginManager getPluginManager ()
 
static BukkitScheduler getScheduler ()
 
static ServicesManager getServicesManager ()
 
static List< WorldgetWorlds ()
 
static World createWorld (WorldCreator options)
 
static boolean unloadWorld (String name, boolean save)
 
static boolean unloadWorld (World world, boolean save)
 
static World getWorld (String name)
 
static World getWorld (UUID uid)
 
static MapView getMap (short id)
 
static MapView createMap (World world)
 
static void reload ()
 
static Logger getLogger ()
 
static PluginCommand getPluginCommand (String name)
 
static void savePlayers ()
 
static boolean dispatchCommand (CommandSender sender, String commandLine)
 
static void configureDbConfig (ServerConfig config)
 
static boolean addRecipe (Recipe recipe)
 
static List< RecipegetRecipesFor (ItemStack result)
 
static Iterator< ReciperecipeIterator ()
 
static void clearRecipes ()
 
static void resetRecipes ()
 
static Map< String, String[]> getCommandAliases ()
 
static int getSpawnRadius ()
 
static void setSpawnRadius (int value)
 
static boolean getOnlineMode ()
 
static boolean getAllowFlight ()
 
static boolean isHardcore ()
 
static void shutdown ()
 
static int broadcast (String message, String permission)
 
static OfflinePlayer getOfflinePlayer (String name)
 
static OfflinePlayer getOfflinePlayer (UUID id)
 
static Player getPlayerExact (String name)
 
static Set< String > getIPBans ()
 
static void banIP (String address)
 
static void unbanIP (String address)
 
static Set< OfflinePlayergetBannedPlayers ()
 
static BanList getBanList (BanList.Type type)
 
static void setWhitelist (boolean value)
 
static Set< OfflinePlayergetWhitelistedPlayers ()
 
static void reloadWhitelist ()
 
static ConsoleCommandSender getConsoleSender ()
 
static Set< OfflinePlayergetOperators ()
 
static File getWorldContainer ()
 
static Messenger getMessenger ()
 
static boolean getAllowEnd ()
 
static File getUpdateFolderFile ()
 
static long getConnectionThrottle ()
 
static int getTicksPerAnimalSpawns ()
 
static int getTicksPerMonsterSpawns ()
 
static boolean useExactLoginLocation ()
 
static GameMode getDefaultGameMode ()
 
static void setDefaultGameMode (GameMode mode)
 
static OfflinePlayer[] getOfflinePlayers ()
 
static Inventory createInventory (InventoryHolder owner, InventoryType type)
 
static Inventory createInventory (InventoryHolder owner, InventoryType type, String title)
 
static Inventory createInventory (InventoryHolder owner, int size)
 
static Inventory createInventory (InventoryHolder owner, int size, String title)
 
static HelpMap getHelpMap ()
 
static int getMonsterSpawnLimit ()
 
static int getAnimalSpawnLimit ()
 
static int getWaterAnimalSpawnLimit ()
 
static int getAmbientSpawnLimit ()
 
static boolean isPrimaryThread ()
 
static String getMotd ()
 
static String getShutdownMessage ()
 
static WarningState getWarningState ()
 
static ItemFactory getItemFactory ()
 
static ScoreboardManager getScoreboardManager ()
 
static CachedServerIcon getServerIcon ()
 
static CachedServerIcon loadServerIcon (File file) throws Exception
 
static CachedServerIcon loadServerIcon (BufferedImage image) throws Exception
 
static void setIdleTimeout (int threshold)
 
static int getIdleTimeout ()
 
static UnsafeValues getUnsafe ()
 

Detailed Description

Represents the Bukkit core, for version and Server singleton handling

Definition at line 37 of file Bukkit.java.

Member Function Documentation

static boolean org.bukkit.Bukkit.addRecipe ( Recipe  recipe)
static
See also
Server::addRecipe(Recipe recipe)

Definition at line 329 of file Bukkit.java.

References org.bukkit.Server.addRecipe().

329  {
330  return server.addRecipe(recipe);
331  }
boolean addRecipe(Recipe recipe)
static void org.bukkit.Bukkit.banIP ( String  address)
static
See also
Server::banIP(String address)

Definition at line 450 of file Bukkit.java.

References org.bukkit.Server.banIP().

450  {
451  server.banIP(address);
452  }
void banIP(String address)
static int org.bukkit.Bukkit.broadcast ( String  message,
String  permission 
)
static
See also
Server::broadcast(String message, String permission)

Definition at line 413 of file Bukkit.java.

References org.bukkit.Server.broadcast().

413  {
414  return server.broadcast(message, permission);
415  }
int broadcast(String message, String permission)
static int org.bukkit.Bukkit.broadcastMessage ( String  message)
static
See also
Server::broadcastMessage(String message)

Definition at line 171 of file Bukkit.java.

References org.bukkit.Server.broadcastMessage().

171  {
172  return server.broadcastMessage(message);
173  }
int broadcastMessage(String message)
static void org.bukkit.Bukkit.clearRecipes ( )
static
See also
Server::clearRecipes()

Definition at line 350 of file Bukkit.java.

References org.bukkit.Server.clearRecipes().

350  {
351  server.clearRecipes();
352  }
static void org.bukkit.Bukkit.configureDbConfig ( ServerConfig  config)
static
See also
Server::configureDbConfig(ServerConfig config)

Definition at line 322 of file Bukkit.java.

References org.bukkit.Server.configureDbConfig().

322  {
323  server.configureDbConfig(config);
324  }
void configureDbConfig(ServerConfig config)
static Inventory org.bukkit.Bukkit.createInventory ( InventoryHolder  owner,
InventoryType  type 
)
static
See also
Server::createInventory(InventoryHolder owner, InventoryType type)

Definition at line 590 of file Bukkit.java.

References org.bukkit.Server.createInventory().

590  {
591  return server.createInventory(owner, type);
592  }
Inventory createInventory(InventoryHolder owner, InventoryType type)
static Inventory org.bukkit.Bukkit.createInventory ( InventoryHolder  owner,
InventoryType  type,
String  title 
)
static
See also
Server::createInventory(InventoryHolder owner, InventoryType type, String title)

Definition at line 597 of file Bukkit.java.

References org.bukkit.Server.createInventory().

597  {
598  return server.createInventory(owner, type, title);
599  }
Inventory createInventory(InventoryHolder owner, InventoryType type)
static Inventory org.bukkit.Bukkit.createInventory ( InventoryHolder  owner,
int  size 
)
static
See also
Server::createInventory(InventoryHolder owner, int size)

Definition at line 604 of file Bukkit.java.

References org.bukkit.Server.createInventory().

604  {
605  return server.createInventory(owner, size);
606  }
Inventory createInventory(InventoryHolder owner, InventoryType type)
static Inventory org.bukkit.Bukkit.createInventory ( InventoryHolder  owner,
int  size,
String  title 
)
static
See also
Server::createInventory(InventoryHolder owner, int size, String title)

Definition at line 612 of file Bukkit.java.

References org.bukkit.Server.createInventory().

612  {
613  return server.createInventory(owner, size, title);
614  }
Inventory createInventory(InventoryHolder owner, InventoryType type)
static MapView org.bukkit.Bukkit.createMap ( World  world)
static
See also
Server::createMap(World world)

Definition at line 280 of file Bukkit.java.

References org.bukkit.Server.createMap().

280  {
281  return server.createMap(world);
282  }
MapView createMap(World world)
static World org.bukkit.Bukkit.createWorld ( WorldCreator  options)
static
See also
Server::createWorld(WorldCreator options)

Definition at line 236 of file Bukkit.java.

References org.bukkit.Server.createWorld().

Referenced by org.bukkit.WorldCreator.createWorld().

236  {
237  return server.createWorld(options);
238  }
World createWorld(WorldCreator creator)
static boolean org.bukkit.Bukkit.dispatchCommand ( CommandSender  sender,
String  commandLine 
)
static
See also
Server::dispatchCommand(CommandSender sender, String commandLine)

Definition at line 315 of file Bukkit.java.

References org.bukkit.Server.dispatchCommand().

315  {
316  return server.dispatchCommand(sender, commandLine);
317  }
boolean dispatchCommand(CommandSender sender, String commandLine)
static boolean org.bukkit.Bukkit.getAllowEnd ( )
static
See also
Server::getAllowEnd()

Definition at line 527 of file Bukkit.java.

References org.bukkit.Server.getAllowEnd().

527  {
528  return server.getAllowEnd();
529  }
boolean getAllowEnd()
static boolean org.bukkit.Bukkit.getAllowFlight ( )
static
See also
Server::getAllowFlight()

Definition at line 392 of file Bukkit.java.

References org.bukkit.Server.getAllowFlight().

392  {
393  return server.getAllowFlight();
394  }
boolean getAllowFlight()
static boolean org.bukkit.Bukkit.getAllowNether ( )
static
See also
Server::getAllowNether()

Definition at line 157 of file Bukkit.java.

References org.bukkit.Server.getAllowNether().

157  {
158  return server.getAllowNether();
159  }
boolean getAllowNether()
static int org.bukkit.Bukkit.getAmbientSpawnLimit ( )
static
See also
Server::getAmbientSpawnLimit()

Definition at line 647 of file Bukkit.java.

References org.bukkit.Server.getAmbientSpawnLimit().

647  {
648  return server.getAmbientSpawnLimit();
649  }
int getAmbientSpawnLimit()
static int org.bukkit.Bukkit.getAnimalSpawnLimit ( )
static
See also
Server::getAnimalSpawnLimit()

Definition at line 633 of file Bukkit.java.

References org.bukkit.Server.getAnimalSpawnLimit().

633  {
634  return server.getAnimalSpawnLimit();
635  }
int getAnimalSpawnLimit()
static BanList org.bukkit.Bukkit.getBanList ( BanList.Type  type)
static
See also
Server::getBanList(BanList.Type)

Definition at line 471 of file Bukkit.java.

References org.bukkit.Server.getBanList().

471  {
472  return server.getBanList(type);
473  }
BanList getBanList(BanList.Type type)
static Set<OfflinePlayer> org.bukkit.Bukkit.getBannedPlayers ( )
static
See also
Server::getBannedPlayers()

Definition at line 464 of file Bukkit.java.

References org.bukkit.Server.getBannedPlayers().

464  {
465  return server.getBannedPlayers();
466  }
Set< OfflinePlayer > getBannedPlayers()
static String org.bukkit.Bukkit.getBukkitVersion ( )
static
See also
Server::getBukkitVersion()

Definition at line 87 of file Bukkit.java.

References org.bukkit.Server.getBukkitVersion().

Referenced by org.bukkit.Bukkit.setServer().

87  {
88  return server.getBukkitVersion();
89  }
String getBukkitVersion()
static Map<String, String[]> org.bukkit.Bukkit.getCommandAliases ( )
static
See also
Server::getCommandAliases()

Definition at line 364 of file Bukkit.java.

References org.bukkit.Server.getCommandAliases().

364  {
365  return server.getCommandAliases();
366  }
Map< String, String[]> getCommandAliases()
static long org.bukkit.Bukkit.getConnectionThrottle ( )
static
See also
Server::getConnectionThrottle()

Definition at line 541 of file Bukkit.java.

References org.bukkit.Server.getConnectionThrottle().

541  {
542  return server.getConnectionThrottle();
543  }
long getConnectionThrottle()
static ConsoleCommandSender org.bukkit.Bukkit.getConsoleSender ( )
static
See also
Server::getConsoleSender()

Definition at line 499 of file Bukkit.java.

References org.bukkit.Server.getConsoleSender().

Referenced by org.bukkit.WorldCreator.generator(), and org.bukkit.WorldCreator.getGeneratorForName().

499  {
500  return server.getConsoleSender();
501  }
ConsoleCommandSender getConsoleSender()
static GameMode org.bukkit.Bukkit.getDefaultGameMode ( )
static
See also
Server::getDefaultGameMode()

Definition at line 569 of file Bukkit.java.

References org.bukkit.Server.getDefaultGameMode().

569  {
570  return server.getDefaultGameMode();
571  }
GameMode getDefaultGameMode()
static boolean org.bukkit.Bukkit.getGenerateStructures ( )
static
See also
Server::getGenerateStructures()

Definition at line 150 of file Bukkit.java.

References org.bukkit.Server.getGenerateStructures().

150  {
151  return server.getGenerateStructures();
152  }
boolean getGenerateStructures()
static HelpMap org.bukkit.Bukkit.getHelpMap ( )
static
See also
Server::getHelpMap()

Definition at line 619 of file Bukkit.java.

References org.bukkit.Server.getHelpMap().

619  {
620  return server.getHelpMap();
621  }
HelpMap getHelpMap()
static int org.bukkit.Bukkit.getIdleTimeout ( )
static
See also
Server::getIdleTimeout()

Definition at line 724 of file Bukkit.java.

References org.bukkit.Server.getIdleTimeout().

724  {
725  return server.getIdleTimeout();
726  }
static String org.bukkit.Bukkit.getIp ( )
static
See also
Server::getIp()

Definition at line 122 of file Bukkit.java.

References org.bukkit.Server.getIp().

122  {
123  return server.getIp();
124  }
static Set<String> org.bukkit.Bukkit.getIPBans ( )
static
See also
Server::getIPBans()

Definition at line 443 of file Bukkit.java.

References org.bukkit.Server.getIPBans().

443  {
444  return server.getIPBans();
445  }
Set< String > getIPBans()
static Logger org.bukkit.Bukkit.getLogger ( )
static
See also
Server::getLogger()

Definition at line 294 of file Bukkit.java.

References org.bukkit.Server.getLogger().

Referenced by org.bukkit.configuration.file.YamlConfiguration.loadConfiguration().

294  {
295  return server.getLogger();
296  }
Logger getLogger()
static MapView org.bukkit.Bukkit.getMap ( short  id)
static
See also
Server::getMap(short id)
Deprecated:
Magic value

Definition at line 273 of file Bukkit.java.

References org.bukkit.Server.getMap().

273  {
274  return server.getMap(id);
275  }
MapView getMap(short id)
static int org.bukkit.Bukkit.getMaxPlayers ( )
static
See also
Server::getMaxPlayers()

Definition at line 101 of file Bukkit.java.

References org.bukkit.Server.getMaxPlayers().

101  {
102  return server.getMaxPlayers();
103  }
static Messenger org.bukkit.Bukkit.getMessenger ( )
static
See also
Server::getMessenger()

Definition at line 520 of file Bukkit.java.

References org.bukkit.Server.getMessenger().

520  {
521  return server.getMessenger();
522  }
Messenger getMessenger()
static int org.bukkit.Bukkit.getMonsterSpawnLimit ( )
static
See also
Server::getMonsterSpawnLimit()

Definition at line 626 of file Bukkit.java.

References org.bukkit.Server.getMonsterSpawnLimit().

626  {
627  return server.getMonsterSpawnLimit();
628  }
int getMonsterSpawnLimit()
static String org.bukkit.Bukkit.getMotd ( )
static
See also
Server::getMotd()

Definition at line 661 of file Bukkit.java.

References org.bukkit.Server.getMotd().

661  {
662  return server.getMotd();
663  }
static String org.bukkit.Bukkit.getName ( )
static
See also
Server::getName()

Definition at line 73 of file Bukkit.java.

References org.bukkit.Server.getName().

Referenced by org.bukkit.Bukkit.setServer().

73  {
74  return server.getName();
75  }
static OfflinePlayer org.bukkit.Bukkit.getOfflinePlayer ( String  name)
static
See also
Server::getOfflinePlayer(String name)

Definition at line 421 of file Bukkit.java.

References org.bukkit.Server.getOfflinePlayer().

421  {
422  return server.getOfflinePlayer(name);
423  }
OfflinePlayer getOfflinePlayer(String name)
static OfflinePlayer org.bukkit.Bukkit.getOfflinePlayer ( UUID  id)
static
See also
Server::getOfflinePlayer(java.util.UUID)

Definition at line 428 of file Bukkit.java.

References org.bukkit.Server.getOfflinePlayer().

428  {
429  return server.getOfflinePlayer(id);
430  }
OfflinePlayer getOfflinePlayer(String name)
static OfflinePlayer [] org.bukkit.Bukkit.getOfflinePlayers ( )
static
See also
Server::getOfflinePlayers()

Definition at line 583 of file Bukkit.java.

References org.bukkit.Server.getOfflinePlayers().

583  {
584  return server.getOfflinePlayers();
585  }
OfflinePlayer[] getOfflinePlayers()
static boolean org.bukkit.Bukkit.getOnlineMode ( )
static
See also
Server::getOnlineMode()

Definition at line 385 of file Bukkit.java.

References org.bukkit.Server.getOnlineMode().

385  {
386  return server.getOnlineMode();
387  }
boolean getOnlineMode()
static Player [] org.bukkit.Bukkit.getOnlinePlayers ( )
static
See also
Server::getOnlinePlayers()

Definition at line 94 of file Bukkit.java.

References org.bukkit.Server.getOnlinePlayers().

94  {
95  return server.getOnlinePlayers();
96  }
Player[] getOnlinePlayers()
static Set<OfflinePlayer> org.bukkit.Bukkit.getOperators ( )
static
See also
Server::getOperators()

Definition at line 506 of file Bukkit.java.

References org.bukkit.Server.getOperators().

506  {
507  return server.getOperators();
508  }
Set< OfflinePlayer > getOperators()
static Player org.bukkit.Bukkit.getPlayer ( String  name)
static
See also
Server::getPlayer(String name)

Definition at line 186 of file Bukkit.java.

References org.bukkit.Server.getPlayer().

186  {
187  return server.getPlayer(name);
188  }
Player getPlayer(String name)
static Player org.bukkit.Bukkit.getPlayer ( UUID  id)
static
See also
Server::getPlayer(java.util.UUID)

Definition at line 201 of file Bukkit.java.

References org.bukkit.Server.getPlayer().

201  {
202  return server.getPlayer(id);
203  }
Player getPlayer(String name)
static Player org.bukkit.Bukkit.getPlayerExact ( String  name)
static
See also
Server::getPlayerExact(String name)

Definition at line 436 of file Bukkit.java.

References org.bukkit.Server.getPlayerExact().

436  {
437  return server.getPlayerExact(name);
438  }
Player getPlayerExact(String name)
static PluginCommand org.bukkit.Bukkit.getPluginCommand ( String  name)
static
See also
Server::getPluginCommand(String name)

Definition at line 301 of file Bukkit.java.

References org.bukkit.Server.getPluginCommand().

301  {
302  return server.getPluginCommand(name);
303  }
PluginCommand getPluginCommand(String name)
static PluginManager org.bukkit.Bukkit.getPluginManager ( )
static
See also
Server::getPluginManager()

Definition at line 208 of file Bukkit.java.

References org.bukkit.Server.getPluginManager().

Referenced by org.bukkit.WorldCreator.getGeneratorForName().

208  {
209  return server.getPluginManager();
210  }
PluginManager getPluginManager()
static int org.bukkit.Bukkit.getPort ( )
static
See also
Server::getPort()

Definition at line 108 of file Bukkit.java.

References org.bukkit.Server.getPort().

108  {
109  return server.getPort();
110  }
static List<Recipe> org.bukkit.Bukkit.getRecipesFor ( ItemStack  result)
static
See also
Server::getRecipesFor(ItemStack result)

Definition at line 336 of file Bukkit.java.

References org.bukkit.Server.getRecipesFor().

336  {
337  return server.getRecipesFor(result);
338  }
List< Recipe > getRecipesFor(ItemStack result)
static ScoreboardManager org.bukkit.Bukkit.getScoreboardManager ( )
static
See also
Server::getScoreboardManager()

Definition at line 689 of file Bukkit.java.

References org.bukkit.Server.getScoreboardManager().

689  {
690  return server.getScoreboardManager();
691  }
ScoreboardManager getScoreboardManager()
static CachedServerIcon org.bukkit.Bukkit.getServerIcon ( )
static
See also
Server::getServerIcon()

Definition at line 696 of file Bukkit.java.

References org.bukkit.Server.getServerIcon().

696  {
697  return server.getServerIcon();
698  }
CachedServerIcon getServerIcon()
static String org.bukkit.Bukkit.getServerId ( )
static
See also
Server::getServerId()

Definition at line 136 of file Bukkit.java.

References org.bukkit.Server.getServerId().

136  {
137  return server.getServerId();
138  }
String getServerId()
static String org.bukkit.Bukkit.getServerName ( )
static
See also
Server::getServerName()

Definition at line 129 of file Bukkit.java.

References org.bukkit.Server.getServerName().

129  {
130  return server.getServerName();
131  }
String getServerName()
static ServicesManager org.bukkit.Bukkit.getServicesManager ( )
static
See also
Server::getServicesManager()

Definition at line 222 of file Bukkit.java.

References org.bukkit.Server.getServicesManager().

222  {
223  return server.getServicesManager();
224  }
ServicesManager getServicesManager()
static String org.bukkit.Bukkit.getShutdownMessage ( )
static
See also
Server::getShutdownMessage()

Definition at line 668 of file Bukkit.java.

References org.bukkit.Server.getShutdownMessage().

668  {
669  return server.getShutdownMessage();
670  }
String getShutdownMessage()
static int org.bukkit.Bukkit.getSpawnRadius ( )
static
See also
Server::getSpawnRadius()

Definition at line 371 of file Bukkit.java.

References org.bukkit.Server.getSpawnRadius().

371  {
372  return server.getSpawnRadius();
373  }
static int org.bukkit.Bukkit.getTicksPerAnimalSpawns ( )
static
See also
Server::getTicksPerAnimalSpawns()

Definition at line 548 of file Bukkit.java.

References org.bukkit.Server.getTicksPerAnimalSpawns().

548  {
549  return server.getTicksPerAnimalSpawns();
550  }
int getTicksPerAnimalSpawns()
static int org.bukkit.Bukkit.getTicksPerMonsterSpawns ( )
static
See also
Server::getTicksPerMonsterSpawns()

Definition at line 555 of file Bukkit.java.

References org.bukkit.Server.getTicksPerMonsterSpawns().

555  {
556  return server.getTicksPerMonsterSpawns();
557  }
int getTicksPerMonsterSpawns()
static UnsafeValues org.bukkit.Bukkit.getUnsafe ( )
static
See also
Server::getUnsafe()

Definition at line 732 of file Bukkit.java.

References org.bukkit.Server.getUnsafe().

732  {
733  return server.getUnsafe();
734  }
UnsafeValues getUnsafe()
static String org.bukkit.Bukkit.getUpdateFolder ( )
static
See also
Server::getUpdateFolder()

Definition at line 178 of file Bukkit.java.

References org.bukkit.Server.getUpdateFolder().

178  {
179  return server.getUpdateFolder();
180  }
String getUpdateFolder()
static File org.bukkit.Bukkit.getUpdateFolderFile ( )
static
See also
Server::getUpdateFolderFile()

Definition at line 534 of file Bukkit.java.

References org.bukkit.Server.getUpdateFolderFile().

534  {
535  return server.getUpdateFolderFile();
536  }
File getUpdateFolderFile()
static String org.bukkit.Bukkit.getVersion ( )
static
See also
Server::getVersion()

Definition at line 80 of file Bukkit.java.

References org.bukkit.Server.getVersion().

Referenced by org.bukkit.Bukkit.setServer().

80  {
81  return server.getVersion();
82  }
String getVersion()
static int org.bukkit.Bukkit.getViewDistance ( )
static
See also
Server::getViewDistance()

Definition at line 115 of file Bukkit.java.

References org.bukkit.Server.getViewDistance().

115  {
116  return server.getViewDistance();
117  }
static WarningState org.bukkit.Bukkit.getWarningState ( )
static
See also
Server::getWarningState()

Definition at line 675 of file Bukkit.java.

References org.bukkit.Server.getWarningState().

675  {
676  return server.getWarningState();
677  }
WarningState getWarningState()
static int org.bukkit.Bukkit.getWaterAnimalSpawnLimit ( )
static
See also
Server::getWaterAnimalSpawnLimit()

Definition at line 640 of file Bukkit.java.

References org.bukkit.Server.getWaterAnimalSpawnLimit().

640  {
641  return server.getWaterAnimalSpawnLimit();
642  }
int getWaterAnimalSpawnLimit()
static Set<OfflinePlayer> org.bukkit.Bukkit.getWhitelistedPlayers ( )
static
See also
Server::getWhitelistedPlayers()

Definition at line 485 of file Bukkit.java.

References org.bukkit.Server.getWhitelistedPlayers().

485  {
486  return server.getWhitelistedPlayers();
487  }
Set< OfflinePlayer > getWhitelistedPlayers()
static World org.bukkit.Bukkit.getWorld ( String  name)
static
See also
Server::getWorld(String name)

Definition at line 257 of file Bukkit.java.

References org.bukkit.Server.getWorld().

257  {
258  return server.getWorld(name);
259  }
World getWorld(String name)
static World org.bukkit.Bukkit.getWorld ( UUID  uid)
static
See also
Server::getWorld(UUID uid)

Definition at line 264 of file Bukkit.java.

References org.bukkit.Server.getWorld().

264  {
265  return server.getWorld(uid);
266  }
World getWorld(String name)
static File org.bukkit.Bukkit.getWorldContainer ( )
static
See also
Server::getWorldContainer()

Definition at line 513 of file Bukkit.java.

References org.bukkit.Server.getWorldContainer().

513  {
514  return server.getWorldContainer();
515  }
File getWorldContainer()
static List<World> org.bukkit.Bukkit.getWorlds ( )
static
See also
Server::getWorlds()

Definition at line 229 of file Bukkit.java.

References org.bukkit.Server.getWorlds().

229  {
230  return server.getWorlds();
231  }
List< World > getWorlds()
static String org.bukkit.Bukkit.getWorldType ( )
static
See also
Server::getWorldType()

Definition at line 143 of file Bukkit.java.

References org.bukkit.Server.getWorldType().

143  {
144  return server.getWorldType();
145  }
String getWorldType()
static boolean org.bukkit.Bukkit.hasWhitelist ( )
static
See also
Server::hasWhitelist()

Definition at line 164 of file Bukkit.java.

References org.bukkit.Server.hasWhitelist().

164  {
165  return server.hasWhitelist();
166  }
boolean hasWhitelist()
static boolean org.bukkit.Bukkit.isHardcore ( )
static
See also
Server::isHardcore()

Definition at line 399 of file Bukkit.java.

References org.bukkit.Server.isHardcore().

399  {
400  return server.isHardcore();
401  }
boolean isHardcore()
static boolean org.bukkit.Bukkit.isPrimaryThread ( )
static
See also
Server::isPrimaryThread()

Definition at line 654 of file Bukkit.java.

References org.bukkit.Server.isPrimaryThread().

654  {
655  return server.isPrimaryThread();
656  }
boolean isPrimaryThread()
static CachedServerIcon org.bukkit.Bukkit.loadServerIcon ( File  file) throws Exception
static
See also
Server::loadServerIcon(File)

Definition at line 703 of file Bukkit.java.

References org.bukkit.Server.loadServerIcon().

703  {
704  return server.loadServerIcon(file);
705  }
CachedServerIcon loadServerIcon(File file)
static CachedServerIcon org.bukkit.Bukkit.loadServerIcon ( BufferedImage  image) throws Exception
static
See also
Server::loadServerIcon(BufferedImage)

Definition at line 710 of file Bukkit.java.

References org.bukkit.Server.loadServerIcon().

710  {
711  return server.loadServerIcon(image);
712  }
CachedServerIcon loadServerIcon(File file)
static List<Player> org.bukkit.Bukkit.matchPlayer ( String  name)
static
See also
Server::matchPlayer(String name)

Definition at line 194 of file Bukkit.java.

References org.bukkit.Server.matchPlayer().

194  {
195  return server.matchPlayer(name);
196  }
List< Player > matchPlayer(String name)
static Iterator<Recipe> org.bukkit.Bukkit.recipeIterator ( )
static
See also
Server::recipeIterator()

Definition at line 343 of file Bukkit.java.

References org.bukkit.Server.recipeIterator().

343  {
344  return server.recipeIterator();
345  }
Iterator< Recipe > recipeIterator()
static void org.bukkit.Bukkit.reload ( )
static
See also
Server::reload()

Definition at line 287 of file Bukkit.java.

References org.bukkit.Server.reload().

287  {
288  server.reload();
289  }
static void org.bukkit.Bukkit.reloadWhitelist ( )
static
See also
Server::reloadWhitelist()

Definition at line 492 of file Bukkit.java.

References org.bukkit.Server.reloadWhitelist().

492  {
493  server.reloadWhitelist();
494  }
void reloadWhitelist()
static void org.bukkit.Bukkit.resetRecipes ( )
static
See also
Server::resetRecipes()

Definition at line 357 of file Bukkit.java.

References org.bukkit.Server.resetRecipes().

357  {
358  server.resetRecipes();
359  }
static void org.bukkit.Bukkit.savePlayers ( )
static
See also
Server::savePlayers()

Definition at line 308 of file Bukkit.java.

References org.bukkit.Server.savePlayers().

308  {
309  server.savePlayers();
310  }
static void org.bukkit.Bukkit.setDefaultGameMode ( GameMode  mode)
static
See also
Server::setDefaultGameMode(GameMode mode)

Definition at line 576 of file Bukkit.java.

References org.bukkit.Server.setDefaultGameMode().

576  {
577  server.setDefaultGameMode(mode);
578  }
void setDefaultGameMode(GameMode mode)
static void org.bukkit.Bukkit.setIdleTimeout ( int  threshold)
static
See also
Server::setIdleTimeout(int)

Definition at line 717 of file Bukkit.java.

References org.bukkit.Server.setIdleTimeout().

717  {
718  server.setIdleTimeout(threshold);
719  }
void setIdleTimeout(int threshold)
static void org.bukkit.Bukkit.setServer ( Server  server)
static

Attempts to set the Server singleton.

This cannot be done if the Server is already set.

Parameters
serverServer instance

Definition at line 61 of file Bukkit.java.

References org.bukkit.Bukkit.getBukkitVersion(), org.bukkit.Server.getLogger(), org.bukkit.Bukkit.getName(), and org.bukkit.Bukkit.getVersion().

61  {
62  if (Bukkit.server != null) {
63  throw new UnsupportedOperationException("Cannot redefine singleton Server");
64  }
65 
66  Bukkit.server = server;
67  server.getLogger().info("This server is running " + getName() + " version " + getVersion() + " (Implementing API version " + getBukkitVersion() + ")");
68  }
static String getBukkitVersion()
Definition: Bukkit.java:87
static String getName()
Definition: Bukkit.java:73
Logger getLogger()
static String getVersion()
Definition: Bukkit.java:80
static void org.bukkit.Bukkit.setSpawnRadius ( int  value)
static
See also
Server::setSpawnRadius(int value)

Definition at line 378 of file Bukkit.java.

References org.bukkit.Server.setSpawnRadius().

378  {
379  server.setSpawnRadius(value);
380  }
void setSpawnRadius(int value)
static void org.bukkit.Bukkit.setWhitelist ( boolean  value)
static
See also
Server::setWhitelist(boolean value)

Definition at line 478 of file Bukkit.java.

References org.bukkit.Server.setWhitelist().

478  {
479  server.setWhitelist(value);
480  }
void setWhitelist(boolean value)
static void org.bukkit.Bukkit.shutdown ( )
static
See also
Server::shutdown()

Definition at line 406 of file Bukkit.java.

References org.bukkit.Server.shutdown().

406  {
407  server.shutdown();
408  }
static void org.bukkit.Bukkit.unbanIP ( String  address)
static
See also
Server::unbanIP(String address)

Definition at line 457 of file Bukkit.java.

References org.bukkit.Server.unbanIP().

457  {
458  server.unbanIP(address);
459  }
void unbanIP(String address)
static boolean org.bukkit.Bukkit.unloadWorld ( String  name,
boolean  save 
)
static
See also
Server::unloadWorld(String name, boolean save)

Definition at line 243 of file Bukkit.java.

References org.bukkit.Server.unloadWorld().

243  {
244  return server.unloadWorld(name, save);
245  }
boolean unloadWorld(String name, boolean save)
static boolean org.bukkit.Bukkit.unloadWorld ( World  world,
boolean  save 
)
static
See also
Server::unloadWorld(World world, boolean save)

Definition at line 250 of file Bukkit.java.

References org.bukkit.Server.unloadWorld().

250  {
251  return server.unloadWorld(world, save);
252  }
boolean unloadWorld(String name, boolean save)
static boolean org.bukkit.Bukkit.useExactLoginLocation ( )
static
See also
Server::useExactLoginLocation()

Definition at line 562 of file Bukkit.java.

References org.bukkit.Server.useExactLoginLocation().

562  {
563  return server.useExactLoginLocation();
564  }
boolean useExactLoginLocation()

The documentation for this class was generated from the following file: