Package codechicken.nei.api

Examples of codechicken.nei.api.ItemFilter


        return hoverStack;
    }

    @Override
    public ItemFilter getFilter() {
        return new ItemFilter()//synchronise access on hiddenItems
        {
            @Override
            public boolean matches(ItemStack item) {
                synchronized (hiddenItems) {
                    return !hiddenItems.matches(item);
View Full Code Here


                filters.add(filter);

            for(SubsetTag child : sorted)
                filters.add(child.compositeFilter());

            return new ItemFilter()
            {
                @Override
                public boolean matches(ItemStack item) {
                    for(ItemFilter filter : filters)
                        if(filter.matches(item))
View Full Code Here

    @Override
    public ItemFilter getFilter() {
        String s_filter = text().toLowerCase();

        for(ISearchProvider p : searchProviders) {
            ItemFilter filter = p.getFilter(s_filter);
            if(filter != null)
                return filter;
        }

        switch(NEIClientConfig.getIntSetting("inventory.searchmode")) {
View Full Code Here

            public ItemStack apply(Integer potionID) {
                return new ItemStack(potionitem, 1, potionID);
            }
        }));
        API.addSubset("Items.Potions", new ItemStackSet().with(potionitem));
        API.addSubset("Items.Potions.Splash", new ItemFilter()
        {
            @Override
            public boolean matches(ItemStack item) {
                return item.getItem() == potionitem && (item.getItemDamage() & 0x4000) != 0;
            }
View Full Code Here

TOP

Related Classes of codechicken.nei.api.ItemFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.