Interface CodingBlockCategory
- All Known Implementing Classes:
ActionCategory, ExecutorCategory
public interface CodingBlockCategory
CodingBlockCategory
This interface represents category enum of coding block.-
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.MaterialReturns second block material, that will be used for placing a coding block after first.@NotNull org.bukkit.MaterialgetBlock()Returns first block material, that will be used for placing a coding block.@NotNull net.kyori.adventure.text.format.NamedTextColorgetColor()Returns color, that will be used for displaying executor in chat.@NotNull MenusCategoryReturns default menus category, that will be shown when openingCoding Block Type Selection menuwith legacy mode, that opens preferred category immediately.@NotNull org.bukkit.inventory.ItemStackgetItem()Returns item of coding block, that will be used for displaying in blocks type selection menu.@NotNull StringReturns localized name of category.@NotNull org.bukkit.MaterialReturns material of colored stained-glass pane, that will be used for decoration in blocks type selection menu.
-
Method Details
-
getDefaultCategory
Returns default menus category, that will be shown when openingCoding Block Type Selection menuwith legacy mode, that opens preferred category immediately.- Returns:
- default menus category.
-
getBlock
@NotNull @NotNull org.bukkit.Material getBlock()Returns first block material, that will be used for placing a coding block.Examples:
- Player Event is Diamond block.
- Player Action is Cobblestone.
- Player Condition is Oak Planks.
- Returns:
- first block material.
-
getStainedPane
@NotNull @NotNull org.bukkit.Material getStainedPane()Returns material of colored stained-glass pane, that will be used for decoration in blocks type selection menu.- Returns:
- material of colored stained-glass pane.
-
getColor
@NotNull @NotNull net.kyori.adventure.text.format.NamedTextColor getColor()Returns color, that will be used for displaying executor in chat.- Returns:
- color of executor.
-
getLocaleName
Returns localized name of category.- Returns:
- localized name of category.
-
getAdditionalBlock
@NotNull @NotNull org.bukkit.Material getAdditionalBlock()Returns second block material, that will be used for placing a coding block after first.Examples:
- Player Event is Diamond ore.
- Player Action is Stone.
- Player Condition is Piston.
- Returns:
- second block material.
-
getItem
@NotNull @NotNull org.bukkit.inventory.ItemStack getItem()Returns item of coding block, that will be used for displaying in blocks type selection menu.- Returns:
- item of coding block.
-