public IServer
サーバーを実装します。
int getProtocolVersion()
プロトコルのバージョン
@NotNull java.lang.String getGameVersion()
ゲームのバージョン
@NotNull java.io.File getPropertiesFile()
プロパティファイルの場所
@Nullable IServerProperties getServerProperties()
プロパティファイルのインスタンス
@NotNull ServerState getState()
サーバーのステータス
@NotNull org.apache.logging.log4j.Logger getLogger()
サーバーのロガー
@NotNull IConsole getConsole()
サーバーのコンソール
@NotNull IFactoryManager getFactoryManager()
データファクトリのマネージャー
@NotNull IEventManager getEventManager()
イベントのマネージャー
@Nullable INetworkManager getNetworkManager()
ネットワークのマネージャー
@NotNull IResourcePackManager getResourcePackManager()
@Nullable IWorldManager getWorldManager()
int getServerPort()
サーバーのポート
@NotNull java.net.InetAddress getServerAddress()
サーバーのアドレス
int getMaxPlayer()
プレイヤーの最大人数
@NotNull java.lang.String getMotd()
サーバーのタイトル
@NotNull java.lang.String getSubMotd()
サーバーのサブタイトル
byte getTickRate()
サーバーの更新レート
long getTotalTick()
サーバーの起動時間
@NotNull IBlockDefinitions getDefineBlocks()
@NotNull IItemDefinitions getDefineItems()
@NotNull IActorDefinitions getDefineActors()
@NotNull IBiomeDefinitions getDefineBiomes()
void start()
サーバーを開始します。
boolean shutdown()
サーバーを終了します。
boolean shutdownForce()
サーバーを強制的に終了します。
boolean update(long tick)
サーバーの更新時に呼び出される。
tick - これまでの累計時間void executeCommand(@NotNull
ICommandSender sender,
@NotNull
java.lang.String command)
コマンドを実行した場合に呼び出される。
sender - コマンド実行者command - コマンド文字列