Files
CustomNPC-Plus/src/main/java/kamkeel/npcs/controllers/data/IProfileData.java
T
2025-01-29 13:20:04 -05:00

30 lines
757 B
Java

package kamkeel.npcs.controllers.data;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
public interface IProfileData {
/**
* Do not use the tag: - Name, lastLoaded, ID
*
* @return The Save Tag utilized in the Profile
*/
public String getTagName();
/**
* @return NBTTagCompound of their Current Data for a given Entity Player
*/
public NBTTagCompound getCurrentNBT(EntityPlayer player);
/**
* Called immediately after setNBT() Replaces existing NBT
*/
public void save(EntityPlayer player);
/**
* Replaces their Current Data operation when changing Profiles
*/
public void setNBT(EntityPlayer player, NBTTagCompound replace);
}