Added an entity, weathertype, and gamemode registry.

This commit is contained in:
Matthew Miller
2018-07-19 22:41:26 +10:00
parent 572bf04482
commit 663dd1f4d8
33 changed files with 747 additions and 115 deletions

View File

@ -29,6 +29,7 @@ import com.sk89q.worldedit.extent.inventory.BlockBag;
import com.sk89q.worldedit.util.HandSide;
import com.sk89q.worldedit.util.Location;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.gamemode.GameMode;
/**
* Represents a player
@ -86,11 +87,18 @@ public interface Player extends Entity, Actor {
BlockBag getInventoryBlockBag();
/**
* Return whether this actor has creative mode.
* Return this actor's game mode.
*
* @return true if creative mode is enabled
* @return the game mode
*/
boolean hasCreativeMode();
GameMode getGameMode();
/**
* Sets the player to the given game mode.
*
* @param gameMode The game mode
*/
void setGameMode(GameMode gameMode);
/**
* Find a position for the actor to stand that is not inside a block.