Applied-Energistics-2-tiler.../src/main/java/appeng/util/inv/ItemSlot.java
thatsIch 76b147fd5b Improved readability of variables
Hopefully improved semantics of variables

Fixed typos

Added hyphenations
2014-09-28 12:21:34 +02:00

40 lines
814 B
Java

package appeng.util.inv;
import net.minecraft.item.ItemStack;
import appeng.api.storage.data.IAEItemStack;
import appeng.util.item.AEItemStack;
public class ItemSlot
{
public int slot;
// one or the other..
private IAEItemStack aeItemStack;
private ItemStack itemStack;
public boolean isExtractable;
public void setItemStack(ItemStack is)
{
aeItemStack = null;
itemStack = is;
}
public void setAEItemStack(IAEItemStack is)
{
aeItemStack = is;
itemStack = null;
}
public ItemStack getItemStack()
{
return itemStack == null ? (aeItemStack == null ? null : (itemStack = aeItemStack.getItemStack())) : itemStack;
}
public IAEItemStack getAEItemStack()
{
return aeItemStack == null ? (itemStack == null ? null : (aeItemStack = AEItemStack.create( itemStack ))) : aeItemStack;
}
}