public class PlayerModificationsManager extends Object
Constructor and Description |
---|
PlayerModificationsManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canFly(Player player)
Check if the player can fly
|
static Collection<PlayerModifications> |
getModifications()
Get all registered modifications
|
static void |
init() |
static boolean |
isProtected(Player player,
Entity damager)
Check if a player can be protected against the specified damager.
|
static boolean |
isSpeedUnlocked(Player player)
Check if the player can speed as he wants
|
static boolean |
shouldIgnoreMovementChecks(Player player)
Check if the movements for this player should be ignored
|
public static void init()
public static boolean isProtected(Player player, Entity damager)
player
- the player that can be protecteddamager
- the entity that try to damagepublic static boolean canFly(Player player)
player
- the player that could flypublic static boolean isSpeedUnlocked(Player player)
player
- the playerpublic static boolean shouldIgnoreMovementChecks(Player player)
player
- the playerpublic static Collection<PlayerModifications> getModifications()