Class BundledBlockRegistry

java.lang.Object
com.sk89q.worldedit.world.registry.BundledBlockRegistry
All Implemented Interfaces:
BlockRegistry

public class BundledBlockRegistry extends Object implements BlockRegistry
A block registry that uses BundledBlockData to serve information about blocks.
  • Constructor Details

    • BundledBlockRegistry

      public BundledBlockRegistry()
  • Method Details

    • getRichName

      public com.sk89q.worldedit.util.formatting.text.Component getRichName(BlockType blockType)
      Description copied from interface: BlockRegistry
      Gets the name for the given block.
      Specified by:
      getRichName in interface BlockRegistry
      Parameters:
      blockType - the block
      Returns:
      The name
    • getName

      @Nullable @Deprecated public String getName(BlockType blockType)
      Deprecated.
      Description copied from interface: BlockRegistry
      Gets the name for the given block.
      Specified by:
      getName in interface BlockRegistry
      Parameters:
      blockType - the block
      Returns:
      The name, or null if it's unknown
    • getMaterial

      @Nullable public BlockMaterial getMaterial(BlockType blockType)
      Description copied from interface: BlockRegistry
      Get the material for the given block.
      Specified by:
      getMaterial in interface BlockRegistry
      Parameters:
      blockType - the block
      Returns:
      the material, or null if the material information is not known
    • getProperties

      @Nullable public Map<String,? extends Property<?>> getProperties(BlockType blockType)
      Description copied from interface: BlockRegistry
      Get an unmodifiable map of states for this block.
      Specified by:
      getProperties in interface BlockRegistry
      Parameters:
      blockType - the block
      Returns:
      a map of states where the key is the state's ID
    • getInternalBlockStateId

      public OptionalInt getInternalBlockStateId(BlockState state)
      Description copied from interface: BlockRegistry
      Retrieve the internal ID for a given state, if possible.
      Specified by:
      getInternalBlockStateId in interface BlockRegistry
      Parameters:
      state - The block state
      Returns:
      the internal ID of the state