Class BlockCategory

java.lang.Object
com.sk89q.worldedit.registry.Category<BlockType>
com.sk89q.worldedit.world.block.BlockCategory
All Implemented Interfaces:
Keyed

public class BlockCategory extends Category<BlockType> implements Keyed
A category of blocks. This is due to the splitting up of blocks such as wool into separate ids.
  • Field Details

  • Constructor Details

    • BlockCategory

      public BlockCategory(String id)
  • Method Details

    • load

      protected Set<BlockType> load()
      Description copied from class: Category
      Loads the contents of this category from the platform.
      Specified by:
      load in class Category<BlockType>
      Returns:
      The loaded contents of the category
    • contains

      public <B extends BlockStateHolder<B>> boolean contains(B blockStateHolder)
      Checks whether the BlockStateHolder is contained within this category.
      Parameters:
      blockStateHolder - The blockstateholder
      Returns:
      If it's a part of this category