Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.GameMode Enum Reference

Public Member Functions

int getValue ()

Static Public Member Functions

static GameMode getByValue (final int value)
 [static initializer]

Public Attributes


Detailed Description

Represents the various type of game modes that HumanEntitys may have

Definition at line 13 of file GameMode.java.

Member Function Documentation

static GameMode org.bukkit.GameMode.getByValue ( final int  value)

Gets the GameMode represented by the specified value

valueValue to check
Associative GameMode with the given value, or null if it doesn't exist
Magic value

Definition at line 57 of file GameMode.java.

57  {
58  return BY_ID.get(value);
59  }
int org.bukkit.GameMode.getValue ( )

Gets the mode value associated with this GameMode

An integer value of this gamemode
Magic value

Definition at line 44 of file GameMode.java.

44  {
45  return value;
46  }

Member Data Documentation

org.bukkit.GameMode.ADVENTURE =(2)

Adventure mode cannot break blocks, use chat, use buckets, etc.

Definition at line 28 of file GameMode.java.

org.bukkit.GameMode.CREATIVE =(1)

Creative mode may fly, build instantly, become invulnerable and create free items.

Definition at line 18 of file GameMode.java.

Referenced by org.bukkit.inventory.InventoryView.convertSlot().

org.bukkit.GameMode.SURVIVAL =(0)

Survival mode is the "normal" gameplay type, with no special features.

Definition at line 23 of file GameMode.java.

The documentation for this enum was generated from the following file: