ChoiceIsMe

ClientEventBus

Aug 3rd, 2021
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package io.github.choiceisme.core.util;
  2.  
  3. import io.github.choiceisme.WeatherMod;
  4. import io.github.choiceisme.client.entity.model.ExampleEntityRenderer;
  5. import io.github.choiceisme.core.init.EntityTypeInit;
  6. import net.minecraftforge.api.distmarker.Dist;
  7. import net.minecraftforge.eventbus.api.SubscribeEvent;
  8. import net.minecraftforge.fml.client.registry.RenderingRegistry;
  9. import net.minecraftforge.fml.common.Mod;
  10. import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
  11. import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
  12.  
  13. @Mod.EventBusSubscriber(modid = WeatherMod.MOD_ID, bus = Bus.MOD, value = Dist.CLIENT)
  14.  
  15. public class ClientEventBusSubscriber {
  16.  
  17. @SubscribeEvent
  18. public static void register(final FMLClientSetupEvent event) {
  19.  
  20.  
  21.  
  22. RenderingRegistry.registerEntityRenderingHandler(EntityTypeInit.EXAMPLE.get(), ExampleEntityRenderer::new);
  23. }
  24.  
  25. }
  26.  
RAW Paste Data