public abstract class ServerInterface extends Object
| Constructor and Description |
|---|
ServerInterface() |
| Modifier and Type | Method and Description |
|---|---|
abstract BiomeTypes |
getBiomes()
Returns all available biomes.
|
List<LocalWorld> |
getWorlds() |
abstract boolean |
isValidMobType(String type)
Checks if a mob type is valid.
|
void |
onCommandRegistration(List<Command> commands)
Deprecated.
|
void |
onCommandRegistration(List<Command> commands,
CommandsManager<LocalPlayer> manager) |
abstract void |
reload()
Reload WorldEdit configuration.
|
abstract int |
resolveItem(String name)
Resolves an item name to its ID.
|
int |
schedule(long delay,
long period,
Runnable task)
Schedules the given
task to be invoked once every period ticks
after an initial delay of delay ticks. |
public abstract int resolveItem(String name)
name - The name to look uppublic abstract boolean isValidMobType(String type)
type - The mob type name to checkpublic abstract void reload()
public abstract BiomeTypes getBiomes()
public int schedule(long delay,
long period,
Runnable task)
task to be invoked once every period ticks
after an initial delay of delay ticks.delay - Delay in server ticks before executing first repeatperiod - Period in server ticks of the tasktask - Task to be executedpublic List<LocalWorld> getWorlds()
@Deprecated public void onCommandRegistration(List<Command> commands)
public void onCommandRegistration(List<Command> commands, CommandsManager<LocalPlayer> manager)
Copyright © 2010-2014. All Rights Reserved.