39 lines
No EOL
1.2 KiB
Java
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();
|
|
} |