use of mod.azure.doom.util.registry.DoomItems in project MCDoom by AzureDoom.
the class DoomMod method onInitialize.
@Override
public void onInitialize() {
DataTrackers.MEATHOOK_TRACKER.getId();
AutoConfig.register(DoomConfig.class, GsonConfigSerializer::new);
config = AutoConfig.getConfigHolder(DoomConfig.class).getConfig();
DoomBlocks.init();
ITEMS = new DoomItems();
SOUNDS = new ModSoundEvents();
MOBS = new ModEntityTypes();
PROJECTILES = new ProjectilesEntityRegister();
FuelRegistry.INSTANCE.add(DoomItems.ARGENT_ENERGY, 32767);
ICON = Registry.register(Registry.BLOCK_ENTITY_TYPE, MODID + ":icon", FabricBlockEntityTypeBuilder.create(IconBlockEntity::new, DoomBlocks.ICON_WALL1).build(null));
TOTEM = Registry.register(Registry.BLOCK_ENTITY_TYPE, MODID + ":totem", FabricBlockEntityTypeBuilder.create(TotemEntity::new, DoomBlocks.TOTEM).build(null));
GUN_TABLE_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, MODID + ":guntable", FabricBlockEntityTypeBuilder.create(GunBlockEntity::new, DoomBlocks.GUN_TABLE).build(null));
TICKING_LIGHT_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, MODID + ":lightblock", FabricBlockEntityTypeBuilder.create(TickingLightEntity::new, DoomBlocks.TICKING_LIGHT_BLOCK).build(null));
MobSpawn.addSpawnEntries();
if (config.misc.enable_all_villager_trades) {
ServerLifecycleEvents.SERVER_STARTED.register(minecraftServer -> DoomVillagerTrades.addTrades());
}
MobAttributes.init();
GeckoLib.initialize();
PacketHandler.registerMessages();
DoomStructures.setupAndRegisterStructureFeatures();
}
Aggregations