Class 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 Detail

      • ShapeRegistry

        public ShapeRegistry()
    • Method Detail

      • register

        public Shape register​(@NonNull
                              @NonNull java.lang.String name,
                              Shape shape)
      • get

        public Shape get​(java.lang.String name)
      • clear

        public void clear()
      • getAll

        public java.util.Collection<java.lang.String> getAll()
      • registerDefaultShapes

        public void registerDefaultShapes()