MixinImplReplicationTask

class MixinImplReplicationTask(extractMatter: (type: IMatterType, amount: Long) -> Long)(source)

Constructors

Link copied to clipboard
constructor(extractMatter: (type: IMatterType, amount: Long) -> Long)

Properties

Link copied to clipboard
var internalMatterStacks: Object2LongMap<IMatterType>

Functions

Link copied to clipboard
fun extractMatterStacks(original: MatterCompound?, pos: BlockPos, oldOriginalRef: LocalRef<MatterCompound>, ci: CallbackInfo, storedMatterStack: HashMap<Long, List<MatterStack>>): MatterCompound?

ME Replication Connector からの自動クラフト時に追加される内部タンクからマターを搬出するように処理を変更します 足りなかったマターは本来の処理で搬出されます

Link copied to clipboard
fun restoreMatterAmount(originalAmount: Double, oldOriginal: MatterCompound?, type: IMatterType): Double

extractMatterStacks によって書き換えられた MatterCompound を元に戻します