Class MEMatterTank

  • All Implemented Interfaces:
    com.buuz135.replication.api.matter_fluid.IMatterTank

    
    public final class MEMatterTank
     implements IMatterTank
                        

    ME ネットワークのマターを扱う IMatterTank 実装

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MEMatterTank(IMatterType type, Long amount, MEStorage storage, IActionSource source)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      MatterStack getMatter()
      Double getMatterAmount()
      Double getCapacity()
      Boolean isMatterValid(MatterStack stack)
      final Unit updateAmount(Long newAmount)
      Double fill(MatterStack resource, IFluidHandler.FluidAction action) マターを MEStorage へ搬入する。TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?
      MatterStack drain(Double maxDrain, IFluidHandler.FluidAction action) マターを MEStorage から搬出する。 TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?
      MatterStack drain(MatterStack resource, IFluidHandler.FluidAction action) マターを MEStorage から搬出する。 TODO: StorageHelper を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?
      • Methods inherited from class dev.lapis256.apprep.common.replication.MEMatterTank

        getCapacity, getMatter, getMatterAmount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MEMatterTank

        MEMatterTank(IMatterType type, Long amount, MEStorage storage, IActionSource source)
    • Method Detail

      • 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 を使ってエネルギーコストを考慮した挿入処理を実装すると良いかも?