Posted August 20, 20223 yr if earlier there was player.getEntityData then what is the name of this method now
August 20, 20223 yr Could you please provide a bit more context, like what version you are talking about, what was the usage of the method and what was the return type?
August 20, 20223 yr Author 1 minute ago, Luis_ST said: Could you please provide a bit more context, like what version you are talking about, what was the usage of the method and what was the return type? method was in version 1.12.2
August 20, 20223 yr Author 7 minutes ago, Luis_ST said: Could you please provide a bit more context, like what version you are talking about, what was the usage of the method and what was the return type? Returns a NBTTagCompound that can be used to store custom data for this entity. It will be written, and read from disc, so it persists over world saves. Returns: A NBTTagCompound
August 20, 20223 yr Probably you mean Entity#getPersistentData, if you want to store data in this CompoundTag, create a second CompoundTag store there all data you want to store then put this CompoundTag with your mod id as key into the PersistentData of the Entity. But i would highly recommend you to use a Capability, see: https://forge.gemwire.uk/wiki/Capabilities.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.