Package com.rvandoosselaer.blocks
Class BlockRegistry
- java.lang.Object
-
- com.rvandoosselaer.blocks.BlockRegistry
-
public class BlockRegistry extends java.lang.Object
A thread safe register for blocks. The register is used so only one instance of a block is used throughout the Blocks framework.
-
-
Constructor Summary
Constructors Constructor Description BlockRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Block
get(@NonNull java.lang.String name)
java.util.Collection<Block>
getAll()
Block
register(@NonNull Block block)
Block
register(@NonNull java.lang.String name, Block block)
void
registerDefaultBlocks()
-