| Constructor and Description |
|---|
Resource(java.lang.String type) |
| 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 productVariant)
Register a product added by your mod for this resource.
|
public java.lang.String getType()
IResourceResourceTypes.public IProduct registerProduct(java.lang.String productType, net.minecraft.item.ItemStack productVariant)
IResourceregisterProduct in interface IResourceproductType - The type of the product. For examples see ProductTypes.productVariant - The product provided by your mod.public boolean hasProduct(java.lang.String productType)
hasProduct in interface IResourceproductType - The type of the product. For examples see ProductTypes.@Nullable public IProduct getProduct(java.lang.String productType)
getProduct in interface IResourceproductType - The type of the product. For examples see ProductTypes.public java.util.Map<java.lang.String,IProduct> getRegisteredProducts()
IResourcegetRegisteredProducts in interface IResource