Add creative versions of the Quantum tank and chest, they provide unlimited amount of the specified item/fluid
This commit is contained in:
parent
84aeeb978c
commit
4e352c0953
12 changed files with 303 additions and 1 deletions
22
src/main/java/techreborn/tiles/TileCreativeQuantumTank.java
Normal file
22
src/main/java/techreborn/tiles/TileCreativeQuantumTank.java
Normal file
|
@ -0,0 +1,22 @@
|
|||
package techreborn.tiles;
|
||||
|
||||
public class TileCreativeQuantumTank extends TileQuantumTank {
|
||||
|
||||
@Override
|
||||
public void update() {
|
||||
super.update();
|
||||
if (!tank.isEmpty() && !tank.isFull()) {
|
||||
tank.setFluidAmount(Integer.MAX_VALUE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int slotTransferSpeed() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int fluidTransferAmount() {
|
||||
return 10000;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue