Search in sources :

Example 1 with ProjectilesEntityRegister

use of mod.azure.doom.util.registry.ProjectilesEntityRegister 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();
}
Also used : ProjectilesEntityRegister(mod.azure.doom.util.registry.ProjectilesEntityRegister) ModEntityTypes(mod.azure.doom.util.registry.ModEntityTypes) GsonConfigSerializer(me.shedaniel.autoconfig.serializer.GsonConfigSerializer) DoomItems(mod.azure.doom.util.registry.DoomItems) ModSoundEvents(mod.azure.doom.util.registry.ModSoundEvents)

Aggregations

GsonConfigSerializer (me.shedaniel.autoconfig.serializer.GsonConfigSerializer)1 DoomItems (mod.azure.doom.util.registry.DoomItems)1 ModEntityTypes (mod.azure.doom.util.registry.ModEntityTypes)1 ModSoundEvents (mod.azure.doom.util.registry.ModSoundEvents)1 ProjectilesEntityRegister (mod.azure.doom.util.registry.ProjectilesEntityRegister)1