Interface CodingBlockCategory

All Known Implementing Classes:
ActionCategory, ExecutorCategory

public interface CodingBlockCategory

CodingBlockCategory

This interface represents category enum of coding block.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.Material
    Returns second block material, that will be used for placing a coding block after first.
    @NotNull org.bukkit.Material
    Returns first block material, that will be used for placing a coding block.
    @NotNull net.kyori.adventure.text.format.NamedTextColor
    Returns color, that will be used for displaying executor in chat.
    @NotNull MenusCategory
    Returns default menus category, that will be shown when opening Coding Block Type Selection menu with legacy mode, that opens preferred category immediately.
    @NotNull org.bukkit.inventory.ItemStack
    Returns item of coding block, that will be used for displaying in blocks type selection menu.
    @NotNull String
    Returns localized name of category.
    @NotNull org.bukkit.Material
    Returns material of colored stained-glass pane, that will be used for decoration in blocks type selection menu.
  • Method Details

    • getDefaultCategory

      @NotNull @NotNull MenusCategory getDefaultCategory()
      Returns default menus category, that will be shown when opening Coding Block Type Selection menu with 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

      @NotNull @NotNull String 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.