Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod("mysticsbiomes")
- public class MysticsBiomes
- {
- private static final Logger LOGGER = LogManager.getLogger();
- public static final String MOD_ID = "mysticsbiomes";
- public MysticsBiomes() {
- IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
- DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> {
- modEventBus.addListener(EventPriority.LOWEST, this::clientSetup);
- });
- modEventBus.addListener(EventPriority.LOWEST, this::commonSetup);
- modEventBus.addGenericListener(Biome.class, ModBiomes::registerBiomes);
- ModBlocks.BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus());
- ModItems.ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
- MinecraftForge.EVENT_BUS.register(this);
- }
- private void commonSetup(final FMLCommonSetupEvent event)
- {
- DeferredWorkQueue.runLater(() ->
- {
- VanillaCompatibility.registerCompostables();
- ModBiomes.load();
- });
- }
- private void clientSetup(final FMLClientSetupEvent event)
- {
- DeferredWorkQueue.runLater(VanillaCompatibility::setupVanillaCompatibilityClient);
- }
- public static final ItemGroup TAB = new ItemGroup("mysticsbiomesTab") {
- @Override
- public ItemStack createIcon() {
- return new ItemStack(ModItems.ICON.get());
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement