mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 18:24:10 +00:00
Profile Implementations
This commit is contained in:
1 parent
8ed86f5ec7
commit
2ebe4ed9c5
11 files changed
+769
-114
No files matched your search
@@ -68,6 +68,8 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
|
||||
|
||||
public ScreenSize screenSize = new ScreenSize(-1,-1);
|
||||
|
||||
public int profileSlot = 0;
|
||||
|
||||
public void onLogin() {
|
||||
//Continue playing animation for self when re-logging
|
||||
AnimationData animationData = this.animationData;
|
||||
@@ -113,6 +115,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
|
||||
uuid = data.getString("UUID");
|
||||
}
|
||||
companionID = data.getInteger("PlayerCompanionId");
|
||||
profileSlot = data.getInteger("ProfileSlot");
|
||||
if(data.hasKey("PlayerCompanion") && !hasCompanion()){
|
||||
EntityCustomNpc npc = new EntityCustomNpc(player.worldObj);
|
||||
npc.readEntityFromNBT(data.getCompoundTag("PlayerCompanion"));
|
||||
@@ -148,6 +151,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
|
||||
compound.setString("UUID", uuid);
|
||||
compound.setInteger("PlayerCompanionId", companionID);
|
||||
compound.setBoolean("isGUIOpen",isGUIOpen);
|
||||
compound.setInteger("ProfileSlot", profileSlot);
|
||||
|
||||
if(hasCompanion()){
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
|
||||
Reference in new issue
Block a user