mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 18:44:42 +00:00
update code style
This commit is contained in:
1 parent
1e6ed66244
commit
7912a35083
5 files changed
+12
-16
No files matched your search
@@ -73,7 +73,7 @@ public class FluidCraft {
|
||||
if (!Config.removeRecipe) {
|
||||
RecipeLoader.INSTANCE.run();
|
||||
}
|
||||
if (Config.enableTestItemRecipe) {
|
||||
if (Config.testItemRecipe) {
|
||||
RecipeLoader.addTestItem();
|
||||
}
|
||||
RecipeLoader.runTerminalRecipe();
|
||||
|
||||
@@ -15,11 +15,9 @@ public class Config {
|
||||
public static boolean noFluidPacket;
|
||||
public static boolean fluidIOBus;
|
||||
public static boolean removeRecipe;
|
||||
public static boolean enableTestItemRecipe = true;
|
||||
public static boolean testItemRecipe;
|
||||
public static double portableCellBattery;
|
||||
public static boolean fluidP2PInterface;
|
||||
public static int packetSize;
|
||||
public static int packetRate;
|
||||
public static boolean replaceEC2;
|
||||
public static int levelMaintainerMinTicks;
|
||||
public static int levelMaintainerMaxTicks;
|
||||
@@ -57,13 +55,8 @@ public class Config {
|
||||
"Disable all recipes, for quick tweaker.");
|
||||
portableCellBattery = Config.get("Fluid Craft for AE2", "Portable Fluid Cell Battery Capacity", 20000D)
|
||||
.getDouble();
|
||||
packetSize = Config.get("Fluid Craft for AE2", "packetSize", 256, "Number of items to be sent per packet")
|
||||
.getInt();
|
||||
if (packetSize <= 0) packetSize = 256;
|
||||
packetRate = Config
|
||||
.get("Fluid Craft for AE2", "packetRate", 50, "Period at which packets are dispatched, in ms.")
|
||||
.getInt();
|
||||
if (packetRate <= 0) packetRate = 50;
|
||||
testItemRecipe = Config.get("Fluid Craft for AE2", "Experimental items", true, "Experimental items")
|
||||
.getBoolean();
|
||||
replaceEC2 = Config.getBoolean(
|
||||
"replaceEC2",
|
||||
"Fluid Craft for AE2",
|
||||
|
||||
@@ -61,7 +61,7 @@ public class CreativeFluidCellInventory extends FluidCellInventory {
|
||||
if (fs == null) continue;
|
||||
IAEFluidStack iaeFluidStack = Util.FluidUtil.createAEFluidStack(fs);
|
||||
if (this.cellFluids.findPrecise(iaeFluidStack) == null) {
|
||||
iaeFluidStack.setStackSize(Integer.MAX_VALUE);
|
||||
iaeFluidStack.setStackSize(Integer.MAX_VALUE * 1000L);
|
||||
this.cellFluids.add(iaeFluidStack);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,9 +54,6 @@ public class ItemAndBlockHolder {
|
||||
|
||||
public static void init() {}
|
||||
|
||||
public static ItemEnergyCard ENERGY_CARD = new ItemEnergyCard().register();
|
||||
public static ItemQuantumBridgeCard QUANTUM_BRIDGE_CARD = new ItemQuantumBridgeCard().register();
|
||||
public static ItemMagnetCard MAGNET_CARD = new ItemMagnetCard().register();
|
||||
public static BlockCertusQuartzTank CERTUS_QUARTZ_TANK = new BlockCertusQuartzTank().register();
|
||||
public static BlockFluidAutoFiller FLUID_AUTO_FILLER = new BlockFluidAutoFiller().register();
|
||||
public static BlockFluidDiscretizer DISCRETIZER = new BlockFluidDiscretizer().register();
|
||||
@@ -144,6 +141,9 @@ public class ItemAndBlockHolder {
|
||||
public static ItemInfinityLavaStorageCell INFINITY_LAVA_CELL = new ItemInfinityLavaStorageCell().register();
|
||||
public static ItemBasicFluidStoragePart CELL_PART = new ItemBasicFluidStoragePart().register();
|
||||
public static ItemFluidStorageHousing CELL_HOUSING = new ItemFluidStorageHousing().register();
|
||||
public static ItemEnergyCard ENERGY_CARD = new ItemEnergyCard().register();
|
||||
public static ItemQuantumBridgeCard QUANTUM_BRIDGE_CARD = new ItemQuantumBridgeCard().register();
|
||||
public static ItemMagnetCard MAGNET_CARD = new ItemMagnetCard().register();
|
||||
|
||||
public static void loadSetting() {
|
||||
if (!Config.fluidCells) return;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.glodblock.github.util;
|
||||
|
||||
import static com.glodblock.github.common.item.ItemBaseWirelessTerminal.*;
|
||||
import static com.glodblock.github.common.item.ItemBaseWirelessTerminal.infinityBoosterCard;
|
||||
import static com.glodblock.github.common.item.ItemBaseWirelessTerminal.infinityEnergyCard;
|
||||
import static com.glodblock.github.common.item.ItemBaseWirelessTerminal.magnetCard;
|
||||
import static com.glodblock.github.common.item.ItemBaseWirelessTerminal.restockItems;
|
||||
import static net.minecraft.init.Items.glass_bottle;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
Reference in new issue
Block a user