@RaycusMX
作者 问个问题。。。
v1.8_R3
if (this.cfgMan.multi_Inventory) {
nbt.set("Inventory", nms_player.inventory.a(new NBTTagList()));
}
这的a方法是什么意思
- public NBTTagList a(NBTTagList nbttaglist) {
- int i;
- NBTTagCompound nbttagcompound;
- for (i = 0; i < this.items.length; ++i) {
- if (this.items[i] != null) {
- nbttagcompound = new NBTTagCompound();
- nbttagcompound.setByte("Slot", (byte) i);
- this.items[i].save(nbttagcompound);
- nbttaglist.add(nbttagcompound);
- }
- }
- for (i = 0; i < this.armor.length; ++i) {
- if (this.armor[i] != null) {
- nbttagcompound = new NBTTagCompound();
- nbttagcompound.setByte("Slot", (byte) (i + 100));
- this.armor[i].save(nbttagcompound);
- nbttaglist.add(nbttagcompound);
- }
- }
- return nbttaglist;
- }
复制代码
看代码猜不出