Files
Applied-Energistics-2/src/main/java/appeng/client/me/InternalSlotME.java
T
2014-09-23 19:26:27 -05:00

37 lines
616 B
Java

package appeng.client.me;
import net.minecraft.item.ItemStack;
import appeng.api.storage.data.IAEItemStack;
public class InternalSlotME
{
private final ItemRepo repo;
public int offset;
public int xPos;
public int yPos;
public InternalSlotME(ItemRepo def, int offset, int displayX, int displayY) {
this.repo = def;
this.offset = offset;
this.xPos = displayX;
this.yPos = displayY;
}
public ItemStack getStack()
{
return repo.getItem( offset );
}
public IAEItemStack getAEStack()
{
return repo.getReferenceItem( offset );
}
public boolean hasPower()
{
return repo.hasPower();
}
}