Added GameMode methods to Server and HumanEntity

This commit is contained in:
Dinnerbone
2011-09-09 01:15:37 +01:00
parent da29e0aa4d
commit 3524fde5ff
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package org.bukkit;
import org.bukkit.entity.HumanEntity;
/**
* Represents the various type of game modes that {@link HumanEntity}s may have
*/
public enum GameMode {
/**
* Creative mode may fly, build instantly, become invulnerable and create free items
*/
CREATIVE,
/**
* Survival mode is the "normal" gameplay type, with no special features.
*/
SURVIVAL;
}