Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void readSpawnData(ByteBuf additionalData) {
- NBTTagCompound nbt = ByteBufUtils.readTag(additionalData);
- if (nbt.hasKey("Owner", 10)) {
- this.m_profile = NBTUtil.func_152459_a(nbt.getCompoundTag("Owner"));
- } else if (nbt.hasKey("ExtraType", 8) && !StringUtils.isNullOrEmpty(nbt.getString("ExtraType"))) {
- this.m_profile = new GameProfile((UUID) null, nbt.getString("ExtraType"));
- this.func_152109_d();
- }
- setProfile(this.m_profile);
- NBTTagList nbttaglist1;
- int i;
- if (nbt.hasKey("Equipment", 9)) {
- nbttaglist1 = nbt.getTagList("Equipment", 10);
- for (i = 0; i < this.equipment.length; ++i) {
- this.equipment[i] = ItemStack.loadItemStackFromNBT(nbttaglist1.getCompoundTagAt(i));
- System.out.println("*************** EQUIPMENT ****************** " + this.equipment[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement