Package com.forgeessentials.data

Examples of com.forgeessentials.data.StorageManager


        configManager = new ConfigManager(FEDIR, "main");
        configManager.registerLoader(configManager.getMainConfigName(), this);
        configManager.registerLoader(configManager.getMainConfigName(), new OutputHandler());

        // Initialize data-API
        StorageManager storageManager = new StorageManager(configManager.getConfig("DataStorage"));
        DataStorageManager.manager = storageManager;
        DataStorageManager.registerDriver("ForgeConfig", ForgeConfigDataDriver.class);
        DataStorageManager.registerDriver("NBT", NBTDataDriver.class);
        DataStorageManager.registerDriver("SQL_DB", SQLDataDriver.class);
        registerDataTypes();
        storageManager.setupManager();

        // Load network packages
        FunctionHelper.netHandler = NetworkRegistry.INSTANCE.newSimpleChannel("forgeessentials");
        FunctionHelper.netHandler.registerMessage(S0PacketHandshake.class, S0PacketHandshake.class, 0, Side.SERVER);
        FunctionHelper.netHandler.registerMessage(S1PacketSelectionUpdate.class, S1PacketSelectionUpdate.class, 1, Side.CLIENT);
View Full Code Here

TOP

Related Classes of com.forgeessentials.data.StorageManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.