Search in sources :

Example 1 with PlayerMorphItem

use of de.budschie.bmorph.morph.player.PlayerMorphItem in project BudschieMorphMod by Budschie.

the class BMorphMod method onCommonSetup.

@SubscribeEvent
public static void onCommonSetup(final FMLCommonSetupEvent event) {
    ShrinkAPIInteractor.init();
    MorphCapabilityAttacher.register();
    PufferfishCapabilityAttacher.register();
    GuardianBeamCapabilityAttacher.register();
    ConfigManager.INSTANCE.register(BlacklistData.class, BlacklistData::new);
    System.out.println("Registered capabilities.");
    KEEP_MORPH_INVENTORY = GameRules.register("keepMorphInventory", Category.PLAYER, BooleanValue.create(true));
    PREVENT_LOOKAT = GameRules.register("preventLookat", Category.PLAYER, BooleanValue.create(false));
    DO_MORPH_DROPS = GameRules.register("doMorphDrops", Category.DROPS, BooleanValue.create(true));
    MORPH_AGGRO_DURATION = GameRules.register("morphAggroDuration", Category.PLAYER, IntegerValue.create(200));
    MainNetworkChannel.registerMainNetworkChannels();
    MorphHandler.addMorphItem("player_morph_item", () -> new PlayerMorphItem());
    MorphHandler.addMorphItem("fallback_morph_item", () -> new FallbackMorphItem());
    MorphManagerHandlers.registerDefaultManagers();
    // VanillaFallbackMorphData.intialiseFallbackData();
    // APIInteractor.executeLoadClassIf(() -> ModList.get().isLoaded("betteranimalsplus"), "de.budschie.bmorph.morph.BetterAnimalsPlusFallbackMorphData");
    EntitySynchronizerRegistry.addEntitySynchronizer(new LivingEntitySynchronzier());
    EntitySynchronizerRegistry.addEntitySynchronizer(new ParrotSynchronizer());
    EntitySynchronizerRegistry.addEntitySynchronizer(new SquidSynchronizer());
    EntitySynchronizerRegistry.addEntitySynchronizer(new AbstractPlayerSynchronizer());
    EntitySynchronizerRegistry.addEntitySynchronizer(new PufferfishSynchronizer());
    DYNAMIC_ABILITY_REGISTRY = new DynamicAbilityRegistry();
}
Also used : ParrotSynchronizer(de.budschie.bmorph.render_handler.ParrotSynchronizer) SquidSynchronizer(de.budschie.bmorph.render_handler.SquidSynchronizer) PufferfishSynchronizer(de.budschie.bmorph.render_handler.PufferfishSynchronizer) DynamicAbilityRegistry(de.budschie.bmorph.morph.functionality.DynamicAbilityRegistry) FallbackMorphItem(de.budschie.bmorph.morph.fallback.FallbackMorphItem) BlacklistData(de.budschie.bmorph.capabilities.blacklist.BlacklistData) AbstractPlayerSynchronizer(de.budschie.bmorph.render_handler.AbstractPlayerSynchronizer) PlayerMorphItem(de.budschie.bmorph.morph.player.PlayerMorphItem) LivingEntitySynchronzier(de.budschie.bmorph.render_handler.LivingEntitySynchronzier) SubscribeEvent(net.minecraftforge.eventbus.api.SubscribeEvent)

Aggregations

BlacklistData (de.budschie.bmorph.capabilities.blacklist.BlacklistData)1 FallbackMorphItem (de.budschie.bmorph.morph.fallback.FallbackMorphItem)1 DynamicAbilityRegistry (de.budschie.bmorph.morph.functionality.DynamicAbilityRegistry)1 PlayerMorphItem (de.budschie.bmorph.morph.player.PlayerMorphItem)1 AbstractPlayerSynchronizer (de.budschie.bmorph.render_handler.AbstractPlayerSynchronizer)1 LivingEntitySynchronzier (de.budschie.bmorph.render_handler.LivingEntitySynchronzier)1 ParrotSynchronizer (de.budschie.bmorph.render_handler.ParrotSynchronizer)1 PufferfishSynchronizer (de.budschie.bmorph.render_handler.PufferfishSynchronizer)1 SquidSynchronizer (de.budschie.bmorph.render_handler.SquidSynchronizer)1 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)1