Mekanism-tilera-Edition/common/mekanism/api/IUpgradeManagement.java

45 lines
1.2 KiB
Java
Raw Normal View History

package mekanism.api;
/**
* Implement this if your block or item can store Mekanism-based upgrades.
* @author AidanBrady
*
*/
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
*/
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
*/
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
*/
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
*/
public void setSpeedMultiplier(int multiplier, Object... data);
/**
* 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);
}