2013-07-22 07:05:40 +02:00
|
|
|
package icbm.api;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Applied to all blocks that has a frequency.
|
|
|
|
*
|
|
|
|
* @author Calclavia
|
|
|
|
*/
|
|
|
|
|
2013-07-23 00:24:55 +02:00
|
|
|
public interface IBlockFrequency
|
|
|
|
{
|
2013-07-22 07:05:40 +02:00
|
|
|
/**
|
2013-07-23 00:24:55 +02:00
|
|
|
* @param data - Pass an ItemStack if dealing with items with frequencies.
|
2013-07-22 07:05:40 +02:00
|
|
|
* @return The frequency of this object.
|
|
|
|
*/
|
|
|
|
public int getFrequency();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the frequency
|
|
|
|
*
|
2013-07-23 00:24:55 +02:00
|
|
|
* @param frequency - The frequency of this object.
|
|
|
|
* @param data - Pass an ItemStack if dealing with items with frequencies.
|
2013-07-22 07:05:40 +02:00
|
|
|
*/
|
|
|
|
public void setFrequency(int frequency);
|
|
|
|
}
|