package fr.koka99cab.spiderman.client;

import fr.koka99cab.spiderman.SpidermanMod;
import fr.koka99cab.spiderman.client.item.GrapplingRodCastProperty;
import fr.koka99cab.spiderman.client.render.GrapplingHookRenderer;
import fr.koka99cab.spiderman.mixin.client.ConditionalItemModelPropertiesAccessor;
import fr.koka99cab.spiderman.registry.SpidermanEntityTypes;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;

public class SpidermanClient implements ClientModInitializer {
	@Override
	public void onInitializeClient() {
		ConditionalItemModelPropertiesAccessor.spiderman$getIdMapper().put(SpidermanMod.id("grappling_rod/cast"), GrapplingRodCastProperty.MAP_CODEC);
		EntityRendererRegistry.register(SpidermanEntityTypes.GRAPPLING_HOOK, GrapplingHookRenderer::new);
	}
}
