Interface OABlock
public interface OABlock
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariant(String variant) Add a variant to the listGet custom count message for adminsGet custom count message for the consoleGet custom count message for usersintGet the count numberintGet the count timeGet display colorGet display nameintGet height level valueintGet light level valueGet material nameGet custom message for adminsGet custom message for the consoleGet custom message for usersGet plural block nameintGet priority valueGet singular block namegetSound()Get sound nameGet block variants a unmodifiable ListbooleanIs alerting users option enabled?booleanIs alerting users option enabled?booleanIs count on destroy enabled?booleanIs the block enabled?booleanIs TNT support enabled?voidremoveVariant(String variant) Remove a variant from the listvoidsetAlertingAdmins(boolean alertingAdmins) Set alerts on admins on/offvoidsetAlertingUsers(boolean alertingUsers) Set alert on users on/offvoidsetCountingOnDestroy(boolean countingOnDestroy) Set count on destroy option on/offvoidsetCountMessageAdmin(String countMessageAdmin) Set the custom count message for adminsvoidsetCountMessageConsole(String countMessageConsole) Set the custom message for the consolevoidsetCountMessageUser(String countMessageUser) Set the custom count message for usersvoidsetCountNumber(int number) Set the count number of the blockvoidsetCountTime(int time) Set the count time of the blockvoidsetDisplayColor(String displayColor) Set the display color codevoidsetDisplayName(String displayName) Set the display namevoidsetEnabled(boolean enable) Enable/disable the blockvoidsetHeightLevel(int heightLevel) Set height level capvoidsetLightLevel(int lightLevel) Set light level capvoidsetMessageAdmin(String messageAdmin) Set the custom message for adminsvoidsetMessageConsole(String messageConsole) Set the custom message for the consolevoidsetMessageUser(String messageUser) Set the custom message for usersvoidsetPluralName(String pluralName) Set the plural name of the blockvoidsetPriority(int priority) Set the priority valuevoidsetSingularName(String singularName) Set the singular name of the blockvoidSet sound namevoidsetTNTEnabled(boolean tntEnabled) Set TNT support option on/offvoidsetVariants(List<String> variants) Set the variants list
-
Method Details
-
getMaterialName
String getMaterialName()Get material name- Returns:
- Returns the material name as String
-
isEnabled
boolean isEnabled()Is the block enabled?- Returns:
- Returns true if its enabled
-
setEnabled
void setEnabled(boolean enable) Enable/disable the block- Parameters:
enable- True to enable
-
getVariants
Get block variants a unmodifiable List- Returns:
- A unmodifiable list of block variants
-
setVariants
Set the variants list- Parameters:
variants- The variants to set
-
addVariant
Add a variant to the list- Parameters:
variant- The variant to add
-
removeVariant
Remove a variant from the list- Parameters:
variant- The variant to remove
-
getDisplayName
String getDisplayName()Get display name- Returns:
- Returns the display name
-
setDisplayName
Set the display name- Parameters:
displayName- The display name to set
-
getDisplayColor
String getDisplayColor()Get display color- Returns:
- Returns the display color
-
setDisplayColor
Set the display color code- Parameters:
displayColor- The display color to set
-
isAlertingUsers
boolean isAlertingUsers()Is alerting users option enabled?- Returns:
- Returns true if the option is enabled
-
setAlertingUsers
void setAlertingUsers(boolean alertingUsers) Set alert on users on/off- Parameters:
alertingUsers- True to enable alerts on users
-
isAlertingAdmins
boolean isAlertingAdmins()Is alerting users option enabled?- Returns:
- Returns true if the option is enabled
-
setAlertingAdmins
void setAlertingAdmins(boolean alertingAdmins) Set alerts on admins on/off- Parameters:
alertingAdmins- True to enable alerts on admins
-
getSingularName
String getSingularName()Get singular block name- Returns:
- Returns the singular name of the block
-
setSingularName
Set the singular name of the block- Parameters:
singularName- The singular name of the block
-
getPluralName
String getPluralName()Get plural block name- Returns:
- Returns the plural name of the block
-
setPluralName
Set the plural name of the block- Parameters:
pluralName- The plural name of the block
-
getCountNumber
int getCountNumber()Get the count number- Returns:
- Returns the count number of the block
-
setCountNumber
void setCountNumber(int number) Set the count number of the block- Parameters:
number- The count number of the block
-
getCountTime
int getCountTime()Get the count time- Returns:
- Returns the count time of the block
-
setCountTime
void setCountTime(int time) Set the count time of the block- Parameters:
time- The count time of the block
-
getMessageUser
String getMessageUser()Get custom message for users- Returns:
- Returns the alert message for users
-
setMessageUser
Set the custom message for users- Parameters:
messageUser- The message to set
-
getMessageAdmin
String getMessageAdmin()Get custom message for admins- Returns:
- Returns the alert message for admins
-
setMessageAdmin
Set the custom message for admins- Parameters:
messageAdmin- The message to set
-
getMessageConsole
String getMessageConsole()Get custom message for the console- Returns:
- Returns the alert message for the console
-
setMessageConsole
Set the custom message for the console- Parameters:
messageConsole- The message to set
-
getCountMessageUser
String getCountMessageUser()Get custom count message for users- Returns:
- Returns the count alert message for users
-
setCountMessageUser
Set the custom count message for users- Parameters:
countMessageUser- The message to set
-
getCountMessageAdmin
String getCountMessageAdmin()Get custom count message for admins- Returns:
- Returns the count alert message for admins
-
setCountMessageAdmin
Set the custom count message for admins- Parameters:
countMessageAdmin- The message to set
-
getCountMessageConsole
String getCountMessageConsole()Get custom count message for the console- Returns:
- Returns the count alert message for the console
-
setCountMessageConsole
Set the custom message for the console- Parameters:
countMessageConsole- The message to set
-
getSound
String getSound()Get sound name- Returns:
- Returns the name of the sound
-
setSound
Set sound name- Parameters:
sound- The sound name to set
-
getLightLevel
int getLightLevel()Get light level value- Returns:
- Returns the light level of the block
-
setLightLevel
void setLightLevel(int lightLevel) Set light level cap- Parameters:
lightLevel- The light level to set
-
getHeightLevel
int getHeightLevel()Get height level value- Returns:
- Returns the height level of the block
-
setHeightLevel
void setHeightLevel(int heightLevel) Set height level cap- Parameters:
heightLevel- The height level to set
-
isCountingOnDestroy
boolean isCountingOnDestroy()Is count on destroy enabled?- Returns:
- Returns true if the option is enabled
-
setCountingOnDestroy
void setCountingOnDestroy(boolean countingOnDestroy) Set count on destroy option on/off- Parameters:
countingOnDestroy- True to enable count on destroy
-
isTNTEnabled
boolean isTNTEnabled()Is TNT support enabled?- Returns:
- Returns true if the option is enabled
-
setTNTEnabled
void setTNTEnabled(boolean tntEnabled) Set TNT support option on/off- Parameters:
tntEnabled- True to enable TNT support
-
getPriority
int getPriority()Get priority value- Returns:
- Returns the priority
-
setPriority
void setPriority(int priority) Set the priority value- Parameters:
priority- The priority to set
-