示例#1
0
        public EntityInventory(EntityLiving holder, int slot) : base(holder)
        {
            this.armor   = new EntityArmorInventory(holder);
            this.offhand = new EntityOffhandInventory(holder);

            this.slot = slot;
        }
示例#2
0
        public EntityInventory(EntityLiving holder, int slot) : base(holder)
        {
            if (!holder.NamedTag.Exist("Mainhand"))
            {
                holder.NamedTag.PutInt("Mainhand", 0);
            }
            this.mainHand = holder.NamedTag.GetInt("Mainhand");

            this.armor   = new EntityArmorInventory(holder);
            this.offhand = new EntityOffhandInventory(holder);

            this.slot = slot;
        }