GT5-Unofficial/src/main/java/gregtech/api/interfaces/IItemContainer.java
2015-10-21 22:06:25 -04:00

39 lines
No EOL
1.2 KiB
Java

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();
}