package fr.koka99cab.spiderman;

import fr.koka99cab.spiderman.grapple.GrappleController;
import fr.koka99cab.spiderman.registry.SpidermanEntityTypes;
import fr.koka99cab.spiderman.registry.SpidermanItems;
import net.fabricmc.api.ModInitializer;
import net.minecraft.resources.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SpidermanMod implements ModInitializer {
	public static final String MOD_ID = "spiderman";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

	@Override
	public void onInitialize() {
		SpidermanEntityTypes.register();
		SpidermanItems.register();
		GrappleController.register();
		LOGGER.info("Spiderman charge: le grappin est pret.");
	}

	public static Identifier id(String path) {
		return Identifier.fromNamespaceAndPath(MOD_ID, path);
	}
}
