blob: ea7bae721f839d061df2f421c4e07a09b0c00e46 [file] [log] [blame] [raw]
package li.cil.oc.common.container
import li.cil.oc.client.gui.Icons
import li.cil.oc.common
import net.minecraft.inventory.IInventory
import net.minecraft.inventory.Slot
class StaticComponentSlot(val container: Player, inventory: IInventory, index: Int, x: Int, y: Int, val slot: String, val tier: Int) extends Slot(inventory, index, x, y) with ComponentSlot {
setBackgroundIcon(Icons.get(slot))
val tierIcon = Icons.get(tier)
override def getSlotStackLimit =
slot match {
case common.Slot.Tool | common.Slot.Any | common.Slot.Filtered => super.getSlotStackLimit
case common.Slot.None => 0
case _ => 1
}
}