Applied-Energistics-2-tiler.../container/slot/SlotFakeBlacklist.java
2013-12-27 16:59:59 -06:00

34 lines
506 B
Java

package appeng.container.slot;
import net.minecraft.inventory.IInventory;
public class SlotFakeBlacklist extends SlotFakeTypeOnly
{
public SlotFakeBlacklist(IInventory inv, int idx, int x, int y) {
super( inv, idx, x, y );
}
@Override
public boolean renderIconWithItem()
{
return true;
}
@Override
public float getOpacityOfIcon()
{
return 0.8f;
}
@Override
public int getIcon()
{
if ( getHasStack() )
{
return getStack().stackSize > 0 ? 16 + 14 : 14;
}
return -1;
}
}