Revert "since we no longer need to track several stacks for fuzzy mode"
This reverts commit ca9b6cf5fb
.
This commit is contained in:
parent
ff8e9b5207
commit
b6d3f59da0
@ -176,7 +176,8 @@ private fun takeOne(set: Set<UUID>, view: IStorageProvider<ItemStackWrapper>): B
|
|||||||
}
|
}
|
||||||
|
|
||||||
class ItemMonitorBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) :
|
class ItemMonitorBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) :
|
||||||
MatteryPoweredBlockEntity(MBlockEntities.ITEM_MONITOR, p_155229_, p_155230_) {
|
MatteryPoweredBlockEntity(MBlockEntities.ITEM_MONITOR, p_155229_, p_155230_),
|
||||||
|
IStorageEventConsumer<ItemStackWrapper> {
|
||||||
|
|
||||||
override val energy = WorkerEnergyStorage(this)
|
override val energy = WorkerEnergyStorage(this)
|
||||||
|
|
||||||
@ -257,6 +258,25 @@ class ItemMonitorBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) :
|
|||||||
|
|
||||||
private val craftingGridDummy = CraftingContainer(craftingMenu, 3, 3)
|
private val craftingGridDummy = CraftingContainer(craftingMenu, 3, 3)
|
||||||
|
|
||||||
|
override val storageType: StorageStackType<ItemStackWrapper>
|
||||||
|
get() = ITEM_STORAGE
|
||||||
|
|
||||||
|
override fun addStack(stack: ItemStackWrapper, id: UUID, provider: IStorageProvider<ItemStackWrapper>) {
|
||||||
|
// TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun changeStack(stack: ItemStackWrapper, id: UUID, oldCount: BigInteger) {
|
||||||
|
// no op
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun removeStack(stack: ItemStackWrapper, id: UUID) {
|
||||||
|
// TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
cell.addStorageComponent(this)
|
||||||
|
}
|
||||||
|
|
||||||
var craftingRecipe: CraftingRecipe? = null
|
var craftingRecipe: CraftingRecipe? = null
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user