mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Add Guide Book and Analyzer Screen (#2073)
This commit is contained in:
1 parent
b5a8740e4a
commit
8ba478d758
251 files changed
+7985
-2550
No files matched your search
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.plugins;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
@@ -65,6 +66,8 @@ import forestry.farming.logic.FarmLogicRubber;
|
||||
import forestry.farming.logic.farmables.FarmableBasicIC2Crop;
|
||||
import forestry.modules.BlankForestryModule;
|
||||
import forestry.modules.ForestryModuleUids;
|
||||
import forestry.modules.ModuleHelper;
|
||||
|
||||
import ic2.api.item.IC2Items;
|
||||
import ic2.api.recipe.Recipes;
|
||||
|
||||
@@ -85,7 +88,17 @@ public class PluginIC2 extends BlankForestryModule {
|
||||
public static ItemStack fertilizer;
|
||||
|
||||
@Nullable
|
||||
public BlockRegistryIC2 blocks;
|
||||
public static BlockRegistryIC2 blocks;
|
||||
|
||||
public static BlockRegistryIC2 getBlocks() {
|
||||
Preconditions.checkState(blocks != null);
|
||||
return blocks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerItemsAndBlocks() {
|
||||
blocks = new BlockRegistryIC2();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
@@ -257,7 +270,7 @@ public class PluginIC2 extends BlankForestryModule {
|
||||
}
|
||||
|
||||
|
||||
if (ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.ENERGY))) {
|
||||
if (ModuleHelper.isEnabled(ForestryModuleUids.ENERGY)) {
|
||||
Fluid biogas = FluidRegistry.getFluid("ic2biogas");
|
||||
if (biogas != null) {
|
||||
int burnDuration = Math.round(Constants.ENGINE_CYCLE_DURATION_BIOMASS * ForestryAPI.activeMode.getFloatSetting("fuel.biomass.biogas"));
|
||||
@@ -283,7 +296,7 @@ public class PluginIC2 extends BlankForestryModule {
|
||||
ChipsetManager.solderManager.addRecipe(layout, coreItems.tubes.get(EnumElectronTube.BRONZE, 1), Circuits.energyElectricBoost2);
|
||||
ChipsetManager.solderManager.addRecipe(layout, coreItems.tubes.get(EnumElectronTube.IRON, 1), Circuits.energyElectricEfficiency1);
|
||||
|
||||
if (ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.FARMING))) {
|
||||
if (ModuleHelper.isEnabled(ForestryModuleUids.FARMING)) {
|
||||
if (resin != null && rubberWood != null) {
|
||||
ICircuitLayout layoutManual = ChipsetManager.circuitRegistry.getLayout("forestry.farms.manual");
|
||||
ChipsetManager.solderManager.addRecipe(layoutManual, coreItems.tubes.get(EnumElectronTube.RUBBER, 1), Circuits.farmRubberManual);
|
||||
@@ -313,9 +326,4 @@ public class PluginIC2 extends BlankForestryModule {
|
||||
'V', Blocks.PISTON);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerItemsAndBlocks() {
|
||||
blocks = new BlockRegistryIC2();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user