Advertisement
jayhillx

ClientEventBusSubscriber

Aug 21st, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. @Mod.EventBusSubscriber(modid = MysticsBiomes.MOD_ID, bus = Bus.MOD, value = Dist.CLIENT)
  2. public class ClientEventBusSubscriber {
  3.  
  4. @SubscribeEvent
  5. public static void clientSetup(FMLClientSetupEvent event) {
  6. RenderTypeLookup.setRenderLayer(ModBlock.LAVENDER.get(), RenderType.getCutout());
  7. RenderTypeLookup.setRenderLayer(ModBlock.PINK_TULIP.get(), RenderType.getCutout());
  8. RenderTypeLookup.setRenderLayer(ModBlock.STRAWBERRY_BUSH.get(), RenderType.getCutout());
  9. RenderTypeLookup.setRenderLayer(ModBlock.SWEET_STRAWBERRY_BUSH.get(), RenderType.getCutout());
  10. RenderTypeLookup.setRenderLayer(ModBlock.DANDELION_DOOR.get(), RenderType.getCutout());
  11. RenderTypeLookup.setRenderLayer(ModBlock.LEMON_LIME_DOOR.get(), RenderType.getCutout());
  12. RenderTypeLookup.setRenderLayer(ModBlock.SEAFOAM_DOOR.get(), RenderType.getCutout());
  13. RenderTypeLookup.setRenderLayer(ModBlock.TROPICAL_DOOR.get(), RenderType.getCutout());
  14. RenderTypeLookup.setRenderLayer(ModBlock.STRAWBERRY_DOOR.get(), RenderType.getCutout());
  15. RenderTypeLookup.setRenderLayer(ModBlock.SWEET_STRAWBERRY_DOOR.get(), RenderType.getCutout());
  16. RenderTypeLookup.setRenderLayer(ModBlock.LAVENDER_DOOR.get(), RenderType.getCutout());
  17. RenderTypeLookup.setRenderLayer(ModBlock.MYSTIC_DOOR.get(), RenderType.getCutout());
  18. RenderTypeLookup.setRenderLayer(ModBlock.DANDELION_TRAPDOOR.get(), RenderType.getCutout());
  19. RenderTypeLookup.setRenderLayer(ModBlock.LEMON_LIME_TRAPDOOR.get(), RenderType.getCutout());
  20. RenderTypeLookup.setRenderLayer(ModBlock.SEAFOAM_TRAPDOOR.get(), RenderType.getCutout());
  21. RenderTypeLookup.setRenderLayer(ModBlock.TROPICAL_TRAPDOOR.get(), RenderType.getCutout());
  22. RenderTypeLookup.setRenderLayer(ModBlock.STRAWBERRY_TRAPDOOR.get(), RenderType.getCutout());
  23. RenderTypeLookup.setRenderLayer(ModBlock.SWEET_STRAWBERRY_TRAPDOOR.get(), RenderType.getCutout());
  24. RenderTypeLookup.setRenderLayer(ModBlock.LAVENDER_TRAPDOOR.get(), RenderType.getCutout());
  25. RenderTypeLookup.setRenderLayer(ModBlock.MYSTIC_TRAPDOOR.get(), RenderType.getCutout());
  26. RenderTypeLookup.setRenderLayer(ModBlock.DANDELION_SAPLING.get(), RenderType.getCutout());
  27. RenderTypeLookup.setRenderLayer(ModBlock.LEMON_LIME_SAPLING.get(), RenderType.getCutout());
  28. RenderTypeLookup.setRenderLayer(ModBlock.SEAFOAM_SAPLING.get(), RenderType.getCutout());
  29. RenderTypeLookup.setRenderLayer(ModBlock.TROPICAL_SAPLING.get(), RenderType.getCutout());
  30. RenderTypeLookup.setRenderLayer(ModBlock.STRAWBERRY_SAPLING.get(), RenderType.getCutout());
  31. RenderTypeLookup.setRenderLayer(ModBlock.SWEET_STRAWBERRY_SAPLING.get(), RenderType.getCutout());
  32. RenderTypeLookup.setRenderLayer(ModBlock.LAVENDER_SAPLING.get(), RenderType.getCutout());
  33. RenderTypeLookup.setRenderLayer(ModBlock.MYSTIC_SAPLING.get(), RenderType.getCutout());
  34. RenderingRegistry.registerEntityRenderingHandler(ModEntity.STRAWBERRY_COW.get(), StrawberryCowRenderer::new);
  35. RenderingRegistry.registerEntityRenderingHandler(ModEntity.CHOCOLATE_COW.get(), ChocolateCowRenderer::new);
  36. RenderingRegistry.registerEntityRenderingHandler(ModEntity.VANILLA_COW.get(), VanillaCowRenderer::new);
  37. RenderingRegistry.registerEntityRenderingHandler(ModEntity.PINK_CHICKEN.get(), PinkChickenRenderer::new);
  38. }
  39.  
  40. @SubscribeEvent
  41. public static void onRegisterEntities(final RegistryEvent.Register<EntityType<?>> event) {
  42. ModSpawnEgg.initSpawnEgg();
  43. }
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement