Package com.rvandoosselaer.blocks
Class ShapeRegistry
- java.lang.Object
-
- com.rvandoosselaer.blocks.ShapeRegistry
-
public class ShapeRegistry extends java.lang.ObjectA 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 voidclear()Shapeget(java.lang.String name)java.util.Collection<java.lang.String>getAll()Shaperegister(@NonNull java.lang.String name, Shape shape)voidregisterDefaultShapes()
-