public void register(short id,Class<?> block){
        if(registeredBlocks.containsKey(id))throw new IllegalArgumentException("Block is already registered");
        registeredBlocks.put(id, block);
    }