Skip to content

GameMode ​

enum · pocketmine\player\GameMode · source

TODO: These tags need to be removed once we get rid of LegacyEnumShimTrait (PM6) These are retained for backwards compatibility only.

Cases ​

ADVENTURE ​

php
case ADVENTURE

CREATIVE ​

php
case CREATIVE

SPECTATOR ​

php
case SPECTATOR

SURVIVAL ​

php
case SURVIVAL

Methods ​

fromString() ​

php
public static function fromString(string $str) : ?self

getAliases() ​

php
public function getAliases() : array

getEnglishName() ​

php
public function getEnglishName() : string

getTranslatableName() ​

php
public function getTranslatableName() : \pocketmine\lang\Translatable

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.