Interface OABlock
-
public interface OABlock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addVariant(String variant)
Add a variant to the listString
getCountMessageAdmin()
Get custom count message for adminsString
getCountMessageConsole()
Get custom count message for the consoleString
getCountMessageUser()
Get custom count message for usersint
getCountNumber()
Get the count numberint
getCountTime()
Get the count timeString
getDisplayColor()
Get display colorString
getDisplayName()
Get display nameint
getHeightLevel()
Get height level valueint
getLightLevel()
Get light level valueString
getMaterialName()
Get material nameString
getMessageAdmin()
Get custom message for adminsString
getMessageConsole()
Get custom message for the consoleString
getMessageUser()
Get custom message for usersString
getPluralName()
Get plural block nameint
getPriority()
Get priority valueString
getSingularName()
Get singular block nameString
getSound()
Get sound nameList<String>
getVariants()
Get block variants a unmodifiable Listboolean
isAlertingAdmins()
Is alerting users option enabled?boolean
isAlertingUsers()
Is alerting users option enabled?boolean
isCountingOnDestroy()
Is count on destroy enabled?boolean
isEnabled()
Is the block enabled?boolean
isTNTEnabled()
Is TNT support enabled?void
removeVariant(String variant)
Remove a variant from the listvoid
setAlertingAdmins(boolean alertingAdmins)
Set alerts on admins on/offvoid
setAlertingUsers(boolean alertingUsers)
Set alert on users on/offvoid
setCountingOnDestroy(boolean countingOnDestroy)
Set count on destroy option on/offvoid
setCountMessageAdmin(String countMessageAdmin)
Set the custom count message for adminsvoid
setCountMessageConsole(String countMessageConsole)
Set the custom message for the consolevoid
setCountMessageUser(String countMessageUser)
Set the custom count message for usersvoid
setCountNumber(int number)
Set the count number of the blockvoid
setCountTime(int time)
Set the count time of the blockvoid
setDisplayColor(String displayColor)
Set the display color codevoid
setDisplayName(String displayName)
Set the display namevoid
setEnabled(boolean enable)
Enable/disable the blockvoid
setHeightLevel(int heightLevel)
Set height level capvoid
setLightLevel(int lightLevel)
Set light level capvoid
setMessageAdmin(String messageAdmin)
Set the custom message for adminsvoid
setMessageConsole(String messageConsole)
Set the custom message for the consolevoid
setMessageUser(String messageUser)
Set the custom message for usersvoid
setPluralName(String pluralName)
Set the plural name of the blockvoid
setPriority(int priority)
Set the priority valuevoid
setSingularName(String singularName)
Set the singular name of the blockvoid
setSound(String sound)
Set sound namevoid
setTNTEnabled(boolean tntEnabled)
Set TNT support option on/offvoid
setVariants(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
-
-