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