mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
Added GameMode methods to Server and HumanEntity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
18
paper-api/src/main/java/org/bukkit/GameMode.java
Normal file
18
paper-api/src/main/java/org/bukkit/GameMode.java
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user