Enum BlockType

java.lang.Object
java.lang.Enum<BlockType>
de.marcely.bedwars.api.world.block.BlockType
All Implemented Interfaces:
Serializable, Comparable<BlockType>, java.lang.constant.Constable

public enum BlockType extends Enum<BlockType>
SpecialBlocks may very from what they represent
  • Enum Constant Details Link icon

    • RANKING_SIGN Link icon

      public static final BlockType RANKING_SIGN
      A sign which displays informations of a place in a leaderboard.

      Represented by RankingSignBlock

    • RANKING_SKULL Link icon

      public static final BlockType RANKING_SKULL
      A skull of a player on a specific rank. Used for the leaderboard.

      Represented by RankingSkullBlock

    • JOIN_ARENA_SIGN Link icon

      public static final BlockType JOIN_ARENA_SIGN
      A sign which makes the player join the arena once he interacts with it.

      Represented by JoinArenaSignBlock

    • CUSTOM Link icon

      public static final BlockType CUSTOM
      A block with a custom handler. The only purpose for this is to allow devs to create custom special blocks with custom handlers.

      Represented by CustomBlock

  • Method Details Link icon

    • values Link icon

      public static BlockType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf Link icon

      public static BlockType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getId Link icon

      public String getId()
      Returns the id of this type
      Returns:
      The id
    • fromId Link icon

      @Nullable public static @Nullable BlockType fromId(String id)
      Returns the BlockType that has the given id
      Parameters:
      id - The id that shall match with the returning BlockType
      Returns:
      The BlockType with the given id. null if there's none