Class MixinImplReplicationTask
-
- All Implemented Interfaces:
public final class MixinImplReplicationTask
-
-
Field Summary
Fields Modifier and Type Field Description private Object2LongMap<IMatterType>internalMatterStacks
-
Constructor Summary
Constructors Constructor Description MixinImplReplicationTask(Function2<IMatterType, Long, Long> extractMatter)
-
Method Summary
Modifier and Type Method Description final Object2LongMap<IMatterType>getInternalMatterStacks()final UnitsetInternalMatterStacks(Object2LongMap<IMatterType> value)final MatterCompoundextractMatterStacks(MatterCompound original, BlockPos pos, LocalRef<MatterCompound> oldOriginalRef, CallbackInfo ci, HashMap<Long, List<MatterStack>> storedMatterStack)ME Replication Connector からの自動クラフト時に追加される内部タンクからマターを搬出するように処理を変更します 足りなかったマターは本来の処理で搬出されます final DoublerestoreMatterAmount(Double originalAmount, MatterCompound oldOriginal, IMatterType type)extractMatterStacks によって書き換えられた MatterCompound を元に戻します -
-
Method Detail
-
getInternalMatterStacks
final Object2LongMap<IMatterType> getInternalMatterStacks()
-
setInternalMatterStacks
final Unit setInternalMatterStacks(Object2LongMap<IMatterType> value)
-
extractMatterStacks
final MatterCompound extractMatterStacks(MatterCompound original, BlockPos pos, LocalRef<MatterCompound> oldOriginalRef, CallbackInfo ci, HashMap<Long, List<MatterStack>> storedMatterStack)
ME Replication Connector からの自動クラフト時に追加される内部タンクからマターを搬出するように処理を変更します 足りなかったマターは本来の処理で搬出されます
-
restoreMatterAmount
final Double restoreMatterAmount(Double originalAmount, MatterCompound oldOriginal, IMatterType type)
extractMatterStacks によって書き換えられた MatterCompound を元に戻します
-
-
-
-