Interface OAPlayer
-
public interface OAPlayer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<OABlockDestroy>
getAllBlockDestroy()
Get all blocks destroy stats of the playerOABlockDestroy
getBlockDestroy(OABlock block)
Get block destroy stats of the playerString
getName()
Get the nameUUID
getPlayerUUID()
Get the playerUUID
boolean
haveAlertsOn()
Have the player alerts messages enabled?boolean
isWhitelisted()
Is the player whitelisted?void
setAlertsOn(boolean alerts)
Set alerts on/offvoid
setBlockDestroy(OABlockDestroy blockDestroy)
Set/update a block destroy of the playervoid
setWhitelisted(boolean whitelisted)
Add or remove the player from the whitelist
-
-
-
Method Detail
-
getName
String getName()
Get the name- Returns:
- Returns the name of the player
-
haveAlertsOn
boolean haveAlertsOn()
Have the player alerts messages enabled?- Returns:
- Returns true if the player have alerts on
-
setAlertsOn
void setAlertsOn(boolean alerts)
Set alerts on/off- Parameters:
alerts
- True to enable alerts
-
isWhitelisted
boolean isWhitelisted()
Is the player whitelisted?- Returns:
- Returns true if the player is whitelisted
-
setWhitelisted
void setWhitelisted(boolean whitelisted)
Add or remove the player from the whitelist- Parameters:
whitelisted
- True to whitelist
-
getBlockDestroy
OABlockDestroy getBlockDestroy(OABlock block)
Get block destroy stats of the player- Parameters:
block
- The block- Returns:
- Returns the
OABlockDestroy
instance
-
setBlockDestroy
void setBlockDestroy(OABlockDestroy blockDestroy)
Set/update a block destroy of the player- Parameters:
blockDestroy
- TheOABlockDestroy
to set/update
-
getAllBlockDestroy
Set<OABlockDestroy> getAllBlockDestroy()
Get all blocks destroy stats of the player- Returns:
- Returns a set of
OABlockDestroy
-
-