public interface IMemoryCard
AE's Memory Card Item Class implements this interface.
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.nbt.NBTTagCompound |
getData(net.minecraft.item.ItemStack is) |
java.lang.String |
getSettingsName(net.minecraft.item.ItemStack is)
returns the settings name provided by a previous call to
setMemoryCardContents, or "AppEng.GuiITooltip.Blank" if there was no
previous call to setMemoryCardContents.
|
void |
notifyUser(net.minecraft.entity.player.EntityPlayer player,
MemoryCardMessages msg)
notify the user of a outcome related to the memory card.
|
void |
setMemoryCardContents(net.minecraft.item.ItemStack is,
java.lang.String SettingsName,
net.minecraft.nbt.NBTTagCompound data)
Configures the data stored on the memory card, the SettingsName, will be
localized when displayed.
|
void setMemoryCardContents(net.minecraft.item.ItemStack is,
java.lang.String SettingsName,
net.minecraft.nbt.NBTTagCompound data)
is - itemSettingsName - unlocalized string that represents the tile entity.data - may contain a String called "tooltip" which is is a
unlocalized string displayed after the settings name, optional
but can be used to add details to the card for later.java.lang.String getSettingsName(net.minecraft.item.ItemStack is)
is - itemnet.minecraft.nbt.NBTTagCompound getData(net.minecraft.item.ItemStack is)
is - itemvoid notifyUser(net.minecraft.entity.player.EntityPlayer player,
MemoryCardMessages msg)
player - that used the card.msg - which message to send.