-
Notifications
You must be signed in to change notification settings - Fork 754
/
IMemoryCard.java
40 lines (33 loc) · 965 Bytes
/
IMemoryCard.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package appeng.api.me.items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
/**
* used to interact with memory card items.
*/
public interface IMemoryCard {
/**
* returns true if the item is in fact a memory card.
* @param is
* @return
*/
boolean isMemoryCard( ItemStack is );
/**
* Configures the data stored on the memory card, the SettingsName, will be localized when displayed.
* @param is
* @param SettingsName
* @param data
*/
void setMemoryCardContents( ItemStack is, String SettingsName, NBTTagCompound data );
/**
* returns the settings name provided previously by setMemoryCardContents, or "AppEng.GuiITooltip.Blank" if there is no settings.
* @param is
* @return
*/
String getSettingsName( ItemStack is );
/**
* returns the NBT Data previously saved by setMemoryCardContents, or an empty NBTCompound
* @param is
* @return
*/
NBTTagCompound getData( ItemStack is );
}