LevelSettings
in package
Table of Contents
- $commandsEnabled : bool
- $defaultPlayerPermission : int
- $difficulty : int
- $eduEditionOffer : int
- $eduProductUUID : string
- $eduSharedUriResource : EducationUriResource|null
- $experimentalGameplayOverride : bool|null
- $experiments : Experiments
- $gameRules : array<string|int, mixed>
- $generator : int
- $hasAchievementsDisabled : bool
- $hasBonusChestEnabled : bool
- $hasConfirmedPlatformLockedContent : bool
- $hasEduFeaturesEnabled : bool
- $hasLANBroadcast : bool
- $hasLockedBehaviorPack : bool
- $hasLockedResourcePack : bool
- $hasStartWithMapEnabled : bool
- $isFromLockedWorldTemplate : bool
- $isFromWorldTemplate : bool
- $isMultiplayerGame : bool
- $isNewNether : bool
- $isTexturePacksRequired : bool
- $isWorldTemplateOptionLocked : bool
- $lightningLevel : float
- $limitedWorldLength : int
- $limitedWorldWidth : int
- $onlySpawnV1Villagers : bool
- $platformBroadcastMode : int
- $rainLevel : float
- $seed : int
- $serverChunkTickRadius : int
- $spawnPosition : BlockPosition
- $spawnSettings : SpawnSettings
- $time : int
- $useMsaGamertagsOnly : bool
- $vanillaVersion : string
- $worldGamemode : int
- $xboxLiveBroadcastMode : int
- read() : self
- write() : void
- internalRead() : void
Properties
$commandsEnabled
public
bool
$commandsEnabled
$defaultPlayerPermission
public
int
$defaultPlayerPermission
= \pocketmine\network\mcpe\protocol\types\PlayerPermissions::MEMBER
$difficulty
public
int
$difficulty
$eduEditionOffer
public
int
$eduEditionOffer
= \pocketmine\network\mcpe\protocol\types\EducationEditionOffer::NONE
$eduProductUUID
public
string
$eduProductUUID
= ""
$eduSharedUriResource
public
EducationUriResource|null
$eduSharedUriResource
= null
$experimentalGameplayOverride
public
bool|null
$experimentalGameplayOverride
= null
$experiments
public
Experiments
$experiments
$gameRules
public
array<string|int, mixed>
$gameRules
= []
Tags
$generator
public
int
$generator
= \pocketmine\network\mcpe\protocol\types\GeneratorType::OVERWORLD
$hasAchievementsDisabled
public
bool
$hasAchievementsDisabled
= true
$hasBonusChestEnabled
public
bool
$hasBonusChestEnabled
= false
$hasConfirmedPlatformLockedContent
public
bool
$hasConfirmedPlatformLockedContent
= false
$hasEduFeaturesEnabled
public
bool
$hasEduFeaturesEnabled
= false
$hasLANBroadcast
public
bool
$hasLANBroadcast
= true
$hasLockedBehaviorPack
public
bool
$hasLockedBehaviorPack
= false
$hasLockedResourcePack
public
bool
$hasLockedResourcePack
= false
$hasStartWithMapEnabled
public
bool
$hasStartWithMapEnabled
= false
$isFromLockedWorldTemplate
public
bool
$isFromLockedWorldTemplate
= false
$isFromWorldTemplate
public
bool
$isFromWorldTemplate
= false
$isMultiplayerGame
public
bool
$isMultiplayerGame
= true
$isNewNether
public
bool
$isNewNether
= true
$isTexturePacksRequired
public
bool
$isTexturePacksRequired
= true
$isWorldTemplateOptionLocked
public
bool
$isWorldTemplateOptionLocked
= false
$lightningLevel
public
float
$lightningLevel
$limitedWorldLength
public
int
$limitedWorldLength
= 0
$limitedWorldWidth
public
int
$limitedWorldWidth
= 0
$onlySpawnV1Villagers
public
bool
$onlySpawnV1Villagers
= false
$platformBroadcastMode
public
int
$platformBroadcastMode
= \pocketmine\network\mcpe\protocol\types\MultiplayerGameVisibility::PUBLIC
$rainLevel
public
float
$rainLevel
$seed
public
int
$seed
$serverChunkTickRadius
public
int
$serverChunkTickRadius
= 4
$spawnPosition
public
BlockPosition
$spawnPosition
$spawnSettings
public
SpawnSettings
$spawnSettings
$time
public
int
$time
= -1
$useMsaGamertagsOnly
public
bool
$useMsaGamertagsOnly
= false
$vanillaVersion
public
string
$vanillaVersion
= \pocketmine\network\mcpe\protocol\ProtocolInfo::MINECRAFT_VERSION_NETWORK
$worldGamemode
public
int
$worldGamemode
$xboxLiveBroadcastMode
public
int
$xboxLiveBroadcastMode
= \pocketmine\network\mcpe\protocol\types\MultiplayerGameVisibility::PUBLIC
Methods
read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Tags
Return values
self —write()
public
write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —internalRead()
private
internalRead(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer