Change the plugin system to a module system and slit up modules

-Moved the woodpile from the arboriculture module to the charcoal module
-Moved the backpacks from the storage module to the backpacks module
-Moved the crates from the storage module to the creates module
-Added the database module with a new storage for individuals
-Added a gui element system to improve the alyzer api
-Added a species plugin interface to handle the database gui
-Added some alyzer methods to the species plugin to move the alyzer
integration later to it
This commit is contained in:
Nedelosk committed 2017-11-02 16:03:33 +01:00
1 parent ee272de168
commit 88fd031fb4
277 files changed
+7361 -1930

No files matched your search

@@ -0,0 +1,55 @@
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Various Contributors including, but not limited to:
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
******************************************************************************/
package forestry.plugins;
import com.google.common.collect.ImmutableList;
import net.minecraftforge.fml.common.event.FMLInterModComms;
import forestry.api.storage.BackpackManager;
import forestry.core.config.Constants;
import forestry.core.utils.ModUtil;
import forestry.modules.BlankForestryModule;
import forestry.modules.ForestryModule;
import forestry.modules.ForestryModuleUids;
@ForestryModule(containerID = ForestryCompatPlugins.ID, moduleID = ForestryModuleUids.CHISEL, name = "Chisel", author = "Nirek", url = Constants.URL, unlocalizedDescription = "for.module.chisel.description")
public class PluginChisel extends BlankForestryModule {
private static final String Chisel = "chisel";
@Override
public boolean isAvailable() {
return ModUtil.isModLoaded(Chisel);
}
@Override
public String getFailMessage() {
return "Chisel not found";
}
@Override
public void registerRecipes() {
ImmutableList<String> worldgenBlocks = ImmutableList.of(
"granite",
"limestone",
"marble",
"andesite",
"diorite"
);
for (String wBlocks : worldgenBlocks) {
String message = String.format("%s@%s:%s", BackpackManager.DIGGER_UID, Chisel, wBlocks);
FMLInterModComms.sendMessage(Constants.MOD_ID, "add-backpack-items", message);
}
}
}