use of de.budschie.bmorph.morph.fallback.FallbackMorphItem 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();
}
Aggregations