2020-11-01 15:11:04 +01:00
|
|
|
package de.ellpeck.actuallyadditions.common;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.common.blocks.ActuallyBlocks;
|
|
|
|
import de.ellpeck.actuallyadditions.common.items.ActuallyItems;
|
2020-11-01 18:58:08 +01:00
|
|
|
import net.minecraft.item.ItemGroup;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2020-11-01 15:11:04 +01:00
|
|
|
import net.minecraftforge.eventbus.api.IEventBus;
|
|
|
|
import net.minecraftforge.fml.common.Mod;
|
|
|
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
|
|
|
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
|
|
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
2020-11-04 17:20:33 +01:00
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
|
import org.apache.logging.log4j.Logger;
|
2020-11-01 15:11:04 +01:00
|
|
|
|
|
|
|
@Mod(ActuallyAdditions.MOD_ID)
|
|
|
|
public class ActuallyAdditions {
|
2020-11-04 17:20:33 +01:00
|
|
|
public static final Logger LOGGER = LogManager.getLogger();
|
|
|
|
|
2020-11-01 15:11:04 +01:00
|
|
|
public static final String MOD_ID = "actuallyadditions";
|
|
|
|
|
2020-11-01 18:58:08 +01:00
|
|
|
public static final ItemGroup ACTUALLY_GROUP = new ItemGroup(MOD_ID) {
|
|
|
|
@Override
|
|
|
|
public ItemStack createIcon() {
|
2020-11-21 13:43:38 +01:00
|
|
|
return new ItemStack(ActuallyItems.BOOKLET.get());
|
2020-11-01 18:58:08 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-11-01 15:11:04 +01:00
|
|
|
public ActuallyAdditions() {
|
|
|
|
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
|
|
|
|
|
|
|
ActuallyBlocks.BLOCKS.register(eventBus);
|
|
|
|
ActuallyItems.ITEMS.register(eventBus);
|
|
|
|
|
|
|
|
eventBus.addListener(this::setup);
|
|
|
|
eventBus.addListener(this::clientSetup);
|
2020-11-01 18:58:08 +01:00
|
|
|
|
|
|
|
MinecraftForge.EVENT_BUS.register(this);
|
2020-11-01 15:11:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
private void setup(FMLCommonSetupEvent event) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void clientSetup(FMLClientSetupEvent event) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|