18 lines
373 B
Java
18 lines
373 B
Java
|
package resonantinduction.old.api.coding;
|
||
|
|
||
|
import net.minecraft.nbt.NBTTagCompound;
|
||
|
|
||
|
/**
|
||
|
* Used to ID that an item can support saving data to it NBT
|
||
|
*
|
||
|
* @author DarkGuardsman
|
||
|
*/
|
||
|
public interface IDataItem
|
||
|
{
|
||
|
/** Saves the data to the item */
|
||
|
public NBTTagCompound saveData(NBTTagCompound nbt);
|
||
|
|
||
|
/** Gets the data from the item */
|
||
|
public NBTTagCompound getData();
|
||
|
}
|