package com.thebrokenrail.slightlyvanilla.client; import com.thebrokenrail.slightlyvanilla.SlightlyVanilla; import com.thebrokenrail.slightlyvanilla.ModConfig; import com.thebrokenrail.slightlyvanilla.entity.SlimeballEntity; import io.github.prospector.modmenu.api.ConfigScreenFactory; import io.github.prospector.modmenu.api.ModMenuApi; import me.sargunvohra.mcmods.autoconfig1u.AutoConfig; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry; import net.minecraft.client.gui.screen.Screen; import net.minecraft.client.render.entity.FlyingItemEntityRenderer; public class SlightlyVanillaClient implements ClientModInitializer, ModMenuApi { @Override public void onInitializeClient() { EntityRendererRegistry.INSTANCE.register(SlightlyVanilla.SLIMEBALL_ENTITY, (entityRenderDispatcher, context) -> new FlyingItemEntityRenderer(entityRenderDispatcher, context.getItemRenderer())); } @Override public String getModId() { return SlightlyVanilla.NAMESPACE; } @Override public ConfigScreenFactory getModConfigScreenFactory() { return (ConfigScreenFactory) screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get(); } }