Interface CodingBlockType
- All Known Implementing Classes:
ActionType
public interface CodingBlockType
CodingBlockType
This interface represents coding block type enum, that has category, icon, locale name and disabled state.-
Method Summary
Modifier and TypeMethodDescription@NotNull CodingBlockCategoryReturns category of coding block.@NotNull org.bukkit.inventory.ItemStackgetIcon()Returns icon, that will be used for displaying in Coding Block Type Selection menus.@NotNull StringReturns localized name of coding block.booleanChecks whether coding block is disabled and cannot be executed.
-
Method Details
-
getCategory
Returns category of coding block.- Returns:
- coding block category.
-
getIcon
@NotNull @NotNull org.bukkit.inventory.ItemStack getIcon()Returns icon, that will be used for displaying in Coding Block Type Selection menus.- Returns:
- icon of coding block.
-
getLocaleName
Returns localized name of coding block.- Returns:
- localized name of coding block.
-
isDisabled
boolean isDisabled()Checks whether coding block is disabled and cannot be executed.- Returns:
- true - disabled, false - enabled.
-