| Modifier and Type | Field and Description |
|---|---|
static SemVer |
API_VERSION |
static String |
BROADCAST_CHANNEL_ADMINISTRATIVE |
static String |
BROADCAST_CHANNEL_USERS |
static com.fasterxml.jackson.databind.ObjectMapper |
JSON_MAPPER |
static com.nukkitx.protocol.bedrock.BedrockPacketCodec |
MINECRAFT_CODEC |
static SemVer |
MINECRAFT_VERSION |
static String |
NAME |
static String |
NUKKIT_VERSION |
static com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper |
PROPERTIES_MAPPER |
static com.fasterxml.jackson.dataformat.yaml.YAMLMapper |
YAML_MAPPER |
| Constructor and Description |
|---|
NukkitServer(Path filePath,
Path dataPath,
Path pluginPath,
boolean ansiEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBanlist, getCommandManager, getConfiguration, getConsoleCommandSender, getDefaultLevel, getEventManager, getGeneratorRegistry, getLocaleManager, getPermissionManager, getPluginManager, getScheduler, getWhitelistpublic static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
public static final com.fasterxml.jackson.dataformat.yaml.YAMLMapper YAML_MAPPER
public static final com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper PROPERTIES_MAPPER
public static final com.nukkitx.protocol.bedrock.BedrockPacketCodec MINECRAFT_CODEC
public static final String NAME
public static final SemVer API_VERSION
public static final String NUKKIT_VERSION
public static final SemVer MINECRAFT_VERSION
public static final String BROADCAST_CHANNEL_ADMINISTRATIVE
public static final String BROADCAST_CHANNEL_USERS
public NukkitServer(Path filePath, Path dataPath, Path pluginPath, boolean ansiEnabled) throws IOException
IOException@Deprecated public static NukkitServer getInstance()
public void broadcastMessage(@Nonnull String message)
broadcastMessage in interface Server@Nonnull public String getNukkitVersion()
getNukkitVersion in interface Server@Nonnull public SemVer getMinecraftVersion()
getMinecraftVersion in interface Server@Nonnull public SemVer getApiVersion()
getApiVersion in interface Server@Nonnull public NukkitAbilities getDefaultAbilities()
getDefaultAbilities in interface Serverpublic void broadcastMessage(Message message)
public void broadcastMessage(String message, Collection<Player> recipients)
public void broadcastMessage(Message message, Collection<Player> recipients)
public ConsoleCommandSender getConsoleSender()
public void doAutoSave()
@Nonnull public Collection<Player> getOnlinePlayers()
getOnlinePlayers in interface Serverpublic Optional<Player> getPlayerExact(@Nonnull String name)
getPlayerExact in interface Serverpublic Locale getLanguage()
@Nullable public PluginCommand getPluginCommand(String name)
@Nonnull public NukkitOperators getOperators()
getOperators in interface Serverpublic boolean isWhitelisted(@Nonnull String name)
isWhitelisted in interface Serverpublic boolean isWhitelisted(@Nonnull Player player)
isWhitelisted in interface Serverpublic boolean isWhitelisted(@Nonnull UUID uuid)
isWhitelisted in interface Server@Nonnull public NukkitItemStackBuilder itemInstanceBuilder()
itemInstanceBuilder in interface Server@Nonnull public NukkitBlockStateBuilder blockStateBuilder()
blockStateBuilder in interface Server@Nonnull public ConfigBuilder createConfigBuilder()
createConfigBuilder in interface Server@Nonnull public CompletableFuture<Level> loadLevel(@Nonnull LevelCreator creator)
public boolean unloadLevel(Level level)
Copyright © 2017–2019 NukkitX. All rights reserved.