WorldEditor

interface WorldEditor

Properties

Link copied to clipboard
abstract var difficulty: Difficulty

難易度を設定します。

Link copied to clipboard
abstract var doDaylightCycle: Boolean

昼夜のサイクルを制御します。

Link copied to clipboard
abstract var doMobSpawning: Boolean

モブのスポーンを制御します。

Link copied to clipboard
abstract var doWeatherCycle: Boolean

天気の変化を制御します。

Link copied to clipboard
abstract var keepInventory: Boolean

死亡時のインベントリ保持を制御します。

Link copied to clipboard
abstract var spawnLocation: Location

スポーン地点を設定します。

Link copied to clipboard
abstract var time: Long

サーバーの時刻を設定します。 (0-24000)

Link copied to clipboard
abstract var weather: WeatherType

天気を設定します。

Link copied to clipboard
abstract val world: World

Functions

Link copied to clipboard
abstract fun block(location: Location, action: BlockEditor.() -> Unit)
abstract fun block(x: Int, y: Int, z: Int, action: BlockEditor.() -> Unit)

特定のブロックを編集します。

Link copied to clipboard
abstract fun chunk(x: Int, z: Int, action: ChunkEditor.() -> Unit)

特定のチャンクを編集します。

Link copied to clipboard
abstract fun <T : Any> gameRule(rule: GameRule<T>, value: T)

ゲームルールを設定します。

Link copied to clipboard
abstract fun players(action: PlayerEditor.() -> Unit)

ワールド内のすべてのプレイヤーを編集します。

abstract fun players(filter: (Player) -> Boolean, action: PlayerEditor.() -> Unit)

条件に一致するプレイヤーを編集します。