Add clearSlotFilters to IMatteryContainer
This commit is contained in:
parent
cdaae2f9fa
commit
dfc35f393f
@ -90,6 +90,19 @@ class CombinedContainer(containers: Stream<Pair<Container, Iterable<Int>>>) : IM
|
||||
}
|
||||
}
|
||||
|
||||
override fun clearSlotFilters() {
|
||||
for (container in fullCoverage) {
|
||||
if (container is IMatteryContainer)
|
||||
container.clearSlotFilters()
|
||||
}
|
||||
|
||||
for (slots in notFullCoverage.values) {
|
||||
for (slot in slots) {
|
||||
slot.setFilter()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun getContainerSize(): Int {
|
||||
return slots.size
|
||||
}
|
||||
|
@ -19,6 +19,8 @@ interface IMatteryContainer : IContainer, RecipeInput, Iterable<ItemStack> {
|
||||
return false
|
||||
}
|
||||
|
||||
fun clearSlotFilters()
|
||||
|
||||
override fun isEmpty(): Boolean
|
||||
fun setChanged(slot: Int)
|
||||
|
||||
|
@ -81,7 +81,7 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I
|
||||
var changeset = 0
|
||||
private set
|
||||
|
||||
fun clearSlotFilters() {
|
||||
override fun clearSlotFilters() {
|
||||
Arrays.fill(filters, null)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user