Remove conflicting methods from mattery container

This commit is contained in:
DBotThePony 2025-03-06 21:58:50 +07:00
parent 6c42af9f30
commit caa8d1bb90
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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()
}