Remove conflicting methods from mattery container
This commit is contained in:
parent
6c42af9f30
commit
caa8d1bb90
@ -230,9 +230,6 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I
|
||||
return nonEmptyIndices.isEmpty
|
||||
}
|
||||
|
||||
@Suppress("nothing_to_inline")
|
||||
inline operator fun set(slot: Int, stack: ItemStack) = setItem(slot, stack)
|
||||
|
||||
operator fun contains(other: ItemStack): Boolean {
|
||||
for (i in 0 until size) {
|
||||
if (ItemStack.isSameItemSameComponents(this[i], other)) {
|
||||
@ -495,10 +492,6 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I
|
||||
return Spliterator(nonEmptyIndices.intSpliterator())
|
||||
}
|
||||
|
||||
fun stream(): Stream<ItemStack> {
|
||||
return StreamSupport.stream(spliterator(), false)
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val LOGGER = LogManager.getLogger()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user