2013-02-14 19:26:13 +01:00
|
|
|
package mekanism.api;
|
|
|
|
|
2013-04-01 01:12:10 +02:00
|
|
|
/**
|
|
|
|
* Implement this if your block or item can store Mekanism-based upgrades.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2013-02-14 19:26:13 +01:00
|
|
|
public interface IUpgradeManagement
|
|
|
|
{
|
2013-02-25 21:02:05 +01:00
|
|
|
/**
|
|
|
|
* Gets the energy multiplier from an item or block.
|
|
|
|
* @param data - ItemStack parameter if getting from an item
|
|
|
|
* @return energy multiplier
|
|
|
|
*/
|
2013-02-14 19:26:13 +01:00
|
|
|
public int getEnergyMultiplier(Object... data);
|
|
|
|
|
2013-02-25 21:02:05 +01:00
|
|
|
/**
|
|
|
|
* Sets the energy multiplier of an item or block.
|
|
|
|
* @param multiplier - new multiplier
|
|
|
|
* @param data - ItemStack parameter if getting from an item
|
|
|
|
*/
|
2013-02-14 19:26:13 +01:00
|
|
|
public void setEnergyMultiplier(int multiplier, Object... data);
|
|
|
|
|
2013-02-25 21:02:05 +01:00
|
|
|
/**
|
|
|
|
* Gets the speed multiplier from an item or block.
|
|
|
|
* @param data - ItemStack parameter if getting from an item
|
|
|
|
* @return speed multiplier
|
|
|
|
*/
|
2013-02-14 19:26:13 +01:00
|
|
|
public int getSpeedMultiplier(Object... data);
|
|
|
|
|
2013-02-25 21:02:05 +01:00
|
|
|
/**
|
|
|
|
* Sets the speed multiplier of an item or block.
|
|
|
|
* @param multiplier - new multiplier
|
|
|
|
* @param data - ItemStack parameter if getting from an item
|
|
|
|
*/
|
2013-02-14 19:26:13 +01:00
|
|
|
public void setSpeedMultiplier(int multiplier, Object... data);
|
2013-03-31 00:13:59 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not this item or block supports upgrades.
|
|
|
|
* @param data - ItemStack parameter if getting from an item
|
|
|
|
* @return if the item or block supports upgrades
|
|
|
|
*/
|
|
|
|
public boolean supportsUpgrades(Object... data);
|
2013-02-14 19:26:13 +01:00
|
|
|
}
|