add infinity water cell (#212)

* add infinity water cell

* code improvement for water cell

* code improvement for water cell 2
* changed Integer.MAX_VALUE to Integer.MAX_VALUE * 1000L for creative cells

* code improvement for water cell 3
* changed value to Integer.MAX_VALUE * 1_000_000L for creative cells

---------

Co-authored-by: Zereff06 <[email protected]>
This commit is contained in:
Quetz4landZereff06 authored and GitHub committed 2024-07-02 00:15:02 +02:00
1 parent 402fdedf07
commit 5d2b8eec85
13 files changed
+212 -86

No files matched your search

@@ -29,6 +29,7 @@ import com.glodblock.github.common.item.ItemFluidLevelEmitter;
import com.glodblock.github.common.item.ItemFluidPacket;
import com.glodblock.github.common.item.ItemFluidStorageHousing;
import com.glodblock.github.common.item.ItemFluidStorageMonitor;
import com.glodblock.github.common.item.ItemInfinityWaterStorageCell;
import com.glodblock.github.common.item.ItemMultiFluidStorageCell;
import com.glodblock.github.common.item.ItemPartFluidInterface;
import com.glodblock.github.common.item.ItemPartFluidP2PInterface;
@@ -134,6 +135,7 @@ public class ItemAndBlockHolder {
1,
5).register();
public static ItemCreativeFluidStorageCell CREATIVE_CELL = new ItemCreativeFluidStorageCell().register();
public static ItemInfinityWaterStorageCell INFINITY_WATER_CELL = new ItemInfinityWaterStorageCell().register();
public static ItemBasicFluidStoragePart CELL_PART = new ItemBasicFluidStoragePart().register();
public static ItemFluidStorageHousing CELL_HOUSING = new ItemFluidStorageHousing().register();
@@ -37,6 +37,7 @@ import static com.glodblock.github.loader.ItemAndBlockHolder.FLUID_STORAGE_MONIT
import static com.glodblock.github.loader.ItemAndBlockHolder.FLUID_TERM;
import static com.glodblock.github.loader.ItemAndBlockHolder.FLUID_TERMINAL;
import static com.glodblock.github.loader.ItemAndBlockHolder.FLUID_TERMINAL_EX;
import static com.glodblock.github.loader.ItemAndBlockHolder.INFINITY_WATER_CELL;
import static com.glodblock.github.loader.ItemAndBlockHolder.INTERFACE;
import static com.glodblock.github.loader.ItemAndBlockHolder.LARGE_BUFFER;
import static com.glodblock.github.loader.ItemAndBlockHolder.LEVEL_MAINTAINER;
@@ -167,6 +168,15 @@ public class RecipeLoader implements Runnable {
.findItemStack("appliedenergistics2", "tile.BlockQuantumRing", 1);
public static final ItemStack AE2_DENSE_ENERGY_CELL = GameRegistry
.findItemStack("appliedenergistics2", "tile.BlockDenseEnergyCell", 1);
public static final ItemStack AE2_ANNIHILATION_CORE = new ItemStack(
GameRegistry.findItem("appliedenergistics2", "item.ItemMultiMaterial"),
1,
44);
public static final ItemStack AE2_FORMATION_CORE = new ItemStack(
GameRegistry.findItem("appliedenergistics2", "item.ItemMultiMaterial"),
1,
43);
public static final ItemStack THE_WIRELESS_TERM = GameRegistry
.findItemStack("thaumicenergistics", "wireless.essentia.terminal", 1);
private static final ItemStack WCT_WIRELESS_TERM = GameRegistry
@@ -188,6 +198,7 @@ public class RecipeLoader implements Runnable {
1,
47);
public static final ItemStack NETHER_STAR = new ItemStack(Items.nether_star, 1);
public static final ItemStack WATER_BUCKET = new ItemStack(Items.water_bucket, 1);
@Override
public void run() {
@@ -689,6 +700,27 @@ public class RecipeLoader implements Runnable {
AE2_WIRELESS_RECEIVER));
}
public static void addInfiniteWaterCell() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
INFINITY_WATER_CELL,
"BKB",
"ACF",
"BMB",
'B',
WATER_BUCKET,
'K',
CellType.Cell64kPart.stack(1),
'A',
AE2_ANNIHILATION_CORE,
'C',
CELL_HOUSING.stack(1, 1),
'F',
AE2_FORMATION_CORE,
'M',
AE2_MATTER_CONDENSER));
}
public static void runTerminalRecipe() {
ItemStack[] fc2Terms = { WIRELESS_FLUID_TERM.stack(), WIRELESS_PATTERN_TERM.stack(),
WIRELESS_INTERFACE_TERM.stack(), WIRELESS_LEVEL_TERM.stack() };