Added GameMode methods to Server and HumanEntity

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-09-09 01:15:37 +01:00
parent 42235114ca
commit a3154f3ffc
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;
}