mirror of
https://github.com/GTNewHorizons/gendustry.git
synced 2026-11-26 15:03:16 +00:00
DataSlotTankRestricted now takes fluid object instead of fluid ID
This commit is contained in:
1 parent
c424cbd5d7
commit
98b9928bda
7 files changed
+8
-9
No files matched your search
@@ -35,7 +35,7 @@ class TileMutatronAdv extends TileItemProcessor with TileWorker with TilePowered
|
||||
val selectors = 4 to 9
|
||||
}
|
||||
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.mutagen.getID)
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.mutagen)
|
||||
val selectedMutation = DataSlotInt("selected", this, -1).setUpdate(UpdateKind.SAVE, UpdateKind.GUI)
|
||||
val lastPlayer = DataSlotGameProfile("player", this).setUpdate(UpdateKind.SAVE)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class TileExtractor extends TileBaseProcessor with TileWorker with TilePowered w
|
||||
val inLabware = 1
|
||||
}
|
||||
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.dna.getID).setUpdate(UpdateKind.GUI, UpdateKind.SAVE)
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.dna).setUpdate(UpdateKind.GUI, UpdateKind.SAVE)
|
||||
val output = DataSlotInt("output", this).setUpdate(UpdateKind.SAVE)
|
||||
|
||||
def getSizeInventory = 2
|
||||
|
||||
@@ -26,7 +26,7 @@ import net.minecraftforge.fluids._
|
||||
class TileLiquifier extends TileBaseProcessor with TileWorker with TilePowered with ExposeTank with TileCoverable {
|
||||
lazy val cfg = MachineLiquifier
|
||||
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.protein.getID).setUpdate(UpdateKind.GUI, UpdateKind.SAVE)
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.protein).setUpdate(UpdateKind.GUI, UpdateKind.SAVE)
|
||||
val output = DataSlotInt("output", this).setUpdate(UpdateKind.SAVE)
|
||||
|
||||
object slots {
|
||||
|
||||
@@ -26,7 +26,7 @@ import net.minecraftforge.fluids._
|
||||
class TileMutagenProducer extends TileBaseProcessor with TileWorker with TilePowered with ExposeTank with TileCoverable {
|
||||
lazy val cfg = MachineMutagenProducer
|
||||
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.mutagen.getID).setUpdate(UpdateKind.GUI, UpdateKind.SAVE)
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.mutagen).setUpdate(UpdateKind.GUI, UpdateKind.SAVE)
|
||||
val output = DataSlotInt("output", this).setUpdate(UpdateKind.SAVE)
|
||||
|
||||
def getSizeInventory = 1
|
||||
|
||||
@@ -33,7 +33,7 @@ class TileMutatron extends TileItemProcessor with TileWorker with TilePowered wi
|
||||
val outIndividual = 2
|
||||
}
|
||||
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.mutagen.getID)
|
||||
val tank = DataSlotTankRestricted("tank", this, cfg.tankSize, Fluids.mutagen)
|
||||
val lastPlayer = DataSlotGameProfile("player", this).setUpdate(UpdateKind.SAVE)
|
||||
|
||||
def getSizeInventory = 4
|
||||
|
||||
@@ -30,8 +30,8 @@ class TileReplicator extends TileItemProcessor with TileWorker with TilePowered
|
||||
val outIndividual = 1
|
||||
}
|
||||
|
||||
val dnaTank = DataSlotTankRestricted("dnaTank", this, cfg.dnaTankSize, Fluids.dna.getID)
|
||||
val proteinTank = DataSlotTankRestricted("proteinTank", this, cfg.proteinTankSize, Fluids.protein.getID)
|
||||
val dnaTank = DataSlotTankRestricted("dnaTank", this, cfg.dnaTankSize, Fluids.dna)
|
||||
val proteinTank = DataSlotTankRestricted("proteinTank", this, cfg.proteinTankSize, Fluids.protein)
|
||||
|
||||
def getSizeInventory = 2
|
||||
|
||||
|
||||
@@ -40,8 +40,7 @@ object WailaDataSlotsDataProvider extends BaseDataProvider(classOf[TileDataSlots
|
||||
if (slot.getFluid != null && slot.getFluid.getFluid != null) {
|
||||
Some("%s / %s mB %s".format(DecFormat.round(slot.getFluidAmount), DecFormat.round(slot.size), slot.getFluid.getLocalizedName))
|
||||
} else {
|
||||
val fluid = FluidRegistry.getFluid(slot.fluidID)
|
||||
Some("0 / %s mB %s".format(DecFormat.round(slot.size), fluid.getLocalizedName(new FluidStack(fluid, 1))))
|
||||
Some("0 / %s mB %s".format(DecFormat.round(slot.size), slot.getFluid.getLocalizedName))
|
||||
}
|
||||
|
||||
case slot: DataSlotTank =>
|
||||
|
||||
Reference in new issue
Block a user