GT5-Unofficial/src/main/java/gregtech/api/interfaces/IItemContainer.java

24 lines
1.1 KiB
Java
Raw Normal View History

2015-04-23 16:14:22 +00:00
package gregtech.api.interfaces;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public interface IItemContainer {
public Item getItem();
public Block getBlock();
public boolean isStackEqual(Object aStack);
public boolean isStackEqual(Object aStack, boolean aWildcard, boolean aIgnoreNBT);
public ItemStack get(long aAmount, Object... aReplacements);
public ItemStack getWildcard(long aAmount, Object... aReplacements);
public ItemStack getUndamaged(long aAmount, Object... aReplacements);
public ItemStack getAlmostBroken(long aAmount, Object... aReplacements);
public ItemStack getWithDamage(long aAmount, long aMetaValue, Object... aReplacements);
public IItemContainer set(Item aItem);
public IItemContainer set(ItemStack aStack);
public IItemContainer registerOre(Object... aOreNames);
public IItemContainer registerWildcardAsOre(Object... aOreNames);
public ItemStack getWithCharge(long aAmount, int aEnergy, Object... aReplacements);
public ItemStack getWithName(long aAmount, String aDisplayName, Object... aReplacements);
public boolean hasBeenSet();
}