public interface IResource
ResourceTypes and contains several product types (see ProductTypes.
This is used to unify resources from many mods so that they all use the same items.
Get an instance from IResourceRegistry.registerResource(String).
| Modifier and Type | Method and Description |
|---|---|
IProduct |
getProduct(java.lang.String productType) |
java.util.Map<java.lang.String,IProduct> |
getRegisteredProducts()
Returns a read-only map containing product types and their associated products.
|
java.lang.String |
getType()
The type of the resource.
|
boolean |
hasProduct(java.lang.String productType) |
IProduct |
registerProduct(java.lang.String productType,
net.minecraft.item.ItemStack product)
Register a product added by your mod for this resource.
|
java.lang.String getType()
ResourceTypes.IProduct registerProduct(java.lang.String productType, net.minecraft.item.ItemStack product)
productType - The type of the product. For examples see ProductTypes.product - The product provided by your mod.boolean hasProduct(java.lang.String productType)
productType - The type of the product. For examples see ProductTypes.@Nullable IProduct getProduct(java.lang.String productType)
productType - The type of the product. For examples see ProductTypes.java.util.Map<java.lang.String,IProduct> getRegisteredProducts()