Class MEMatterTank
-
- All Implemented Interfaces:
-
com.buuz135.replication.api.matter_fluid.IMatterTank
public final class MEMatterTank implements IMatterTankME ネットワークのマターを扱う IMatterTank 実装
-
-
Field Summary
Fields Modifier and Type Field Description private final DoublematterAmountprivate final MatterStackmatterprivate final Doublecapacity
-
Constructor Summary
Constructors Constructor Description MEMatterTank(IMatterType type, Long amount, MEStorage storage, IActionSource source)
-
Method Summary
Modifier and Type Method Description MatterStackgetMatter()DoublegetMatterAmount()DoublegetCapacity()BooleanisMatterValid(MatterStack stack)final UnitupdateAmount(Long newAmount)Doublefill(MatterStack resource, IFluidHandler.FluidAction action)マターを MEStorage へ搬入する。TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも? MatterStackdrain(Double maxDrain, IFluidHandler.FluidAction action)マターを MEStorage から搬出する。 TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも? MatterStackdrain(MatterStack resource, IFluidHandler.FluidAction action)マターを MEStorage から搬出する。 TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも? -
-
Constructor Detail
-
MEMatterTank
MEMatterTank(IMatterType type, Long amount, MEStorage storage, IActionSource source)
-
-
Method Detail
-
getMatter
MatterStack getMatter()
-
getMatterAmount
Double getMatterAmount()
-
getCapacity
Double getCapacity()
-
isMatterValid
Boolean isMatterValid(MatterStack stack)
-
updateAmount
final Unit updateAmount(Long newAmount)
-
fill
Double fill(MatterStack resource, IFluidHandler.FluidAction action)
マターを MEStorage へ搬入する。
TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?
-
drain
MatterStack drain(Double maxDrain, IFluidHandler.FluidAction action)
マターを MEStorage から搬出する。 TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?
-
drain
MatterStack drain(MatterStack resource, IFluidHandler.FluidAction action)
マターを MEStorage から搬出する。 TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?
-
-
-
-