package net.Chipperfluff.chipi.world.gen.struct;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import net.Chipperfluff.chipi.world.gen.ChipiStructure; // <-- THIS WAS MISSING

public class ChipiStructures {

    private static final Map<String, ChipiStructure> REGISTRY = new HashMap<>();

    static {
        REGISTRY.put("spawn", new SpawnStructure());
        REGISTRY.put("room_base", new RoomBaseStructure());
        REGISTRY.put("corridor_ns", new CorridorNSStructure());
        REGISTRY.put("corridor_ew", new CorridorEWStructure());
    }

    public static Set<String> getNames() {
        return REGISTRY.keySet();
    }

    public static ChipiStructure get(String name) {
        return REGISTRY.get(name);
    }
}
