Add creative versions of the Quantum tank and chest, they provide unlimited amount of the specified item/fluid

This commit is contained in:
Modmuss50 2018-08-12 16:32:43 +01:00
parent 84aeeb978c
commit 4e352c0953
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
12 changed files with 303 additions and 1 deletions

View 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;
}
}