public interface IProduct
ProductTypes.
This is used to unify resources from many mods so that they all use the same items.
All mods have to register there variant of this product in the pre init phase of fml with IResource.registerProduct(String, ItemStack).
Later in or after the init phase of fml they can get the by OR chosen variant with getChosenProduct().
Get an instance from IResource.getProduct(String) or IResource.registerProduct(String, ItemStack).
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.item.ItemStack |
getChosenProduct() |
IResource |
getResource() |
java.lang.String |
getType()
The type of the product.
|
java.util.List<net.minecraft.item.ItemStack> |
getVariants() |
java.lang.String getType()
ProductTypes.java.util.List<net.minecraft.item.ItemStack> getVariants()
net.minecraft.item.ItemStack getChosenProduct()
IResource getResource()