Interface OABlock
-
public interface OABlock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddVariant(String variant)Add a variant to the listStringgetCountMessageAdmin()Get custom count message for adminsStringgetCountMessageConsole()Get custom count message for the consoleStringgetCountMessageUser()Get custom count message for usersintgetCountNumber()Get the count numberintgetCountTime()Get the count timeStringgetDisplayColor()Get display colorStringgetDisplayName()Get display nameintgetHeightLevel()Get height level valueintgetLightLevel()Get light level valueStringgetMaterialName()Get material nameStringgetMessageAdmin()Get custom message for adminsStringgetMessageConsole()Get custom message for the consoleStringgetMessageUser()Get custom message for usersStringgetPluralName()Get plural block nameintgetPriority()Get priority valueStringgetSingularName()Get singular block nameStringgetSound()Get sound nameList<String>getVariants()Get block variants a unmodifiable ListbooleanisAlertingAdmins()Is alerting users option enabled?booleanisAlertingUsers()Is alerting users option enabled?booleanisCountingOnDestroy()Is count on destroy enabled?booleanisEnabled()Is the block enabled?booleanisTNTEnabled()Is 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 blockvoidsetSound(String sound)Set sound namevoidsetTNTEnabled(boolean tntEnabled)Set TNT support option on/offvoidsetVariants(List<String> variants)Set the variants list
-
-
-
Method Detail
-
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
List<String> getVariants()
Get block variants a unmodifiable List- Returns:
- A unmodifiable list of block variants
-
setVariants
void setVariants(List<String> variants)
Set the variants list- Parameters:
variants- The variants to set
-
addVariant
void addVariant(String variant)
Add a variant to the list- Parameters:
variant- The variant to add
-
removeVariant
void removeVariant(String variant)
Remove a variant from the list- Parameters:
variant- The variant to remove
-
getDisplayName
String getDisplayName()
Get display name- Returns:
- Returns the display name
-
setDisplayName
void setDisplayName(String displayName)
Set the display name- Parameters:
displayName- The display name to set
-
getDisplayColor
String getDisplayColor()
Get display color- Returns:
- Returns the display color
-
setDisplayColor
void setDisplayColor(String displayColor)
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
void setSingularName(String singularName)
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
void setPluralName(String pluralName)
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
void setMessageUser(String messageUser)
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
void setMessageAdmin(String messageAdmin)
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
void setMessageConsole(String messageConsole)
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
void setCountMessageUser(String countMessageUser)
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
void setCountMessageAdmin(String countMessageAdmin)
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
void setCountMessageConsole(String countMessageConsole)
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
void setSound(String sound)
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
-
-