crwdns135271:0crwdne135271:0

Note

crwdns135273:0crwdne135273:0

crwdns135275:0crwdne135275:0

crwdns135277:0crwdne135277:0

crwdns135279:0crwdne135279:0

crwdns135281:0crwdne135281:0

crwdns135283:0crwdne135283:0

crwdns135285:0crwdne135285:0

return new Predicate<ItemStack>() {
    @Override
    public boolean test(ItemStack input) {
        return input.getItem().equals(Items.golden_apple);
    }
}
return input -> input.getItem().equals(Items.golden_apple);
return this::checkItem;

crwdns135287:0crwdne135287:0

public class ItemUtil {
    public static Predicate<ItemStack> typeChecker(final Item item) {
        return new Predicate<ItemStack>() {
            @Override
            public boolean test(ItemStack input) {
                return input.getItem().equals(item);
            }
        }
    }
}

@Mixin(TargetClass.class)
public abstract class SomeMixin {
    public Predicate<ItemStack> someFunction() {
        return ItemUtil.typeChecker(Items.golden_apple);
    }
}

Note

crwdns135289:0crwdne135289:0