crwdns31203:0crwdne31203:0

Note

crwdns31204:0crwdne31204:0

crwdns31205:0crwdne31205:0

crwdns31206:0crwdne31206:0

crwdns31207:0crwdne31207:0

crwdns31208:0crwdne31208:0

crwdns31209:0crwdne31209:0

crwdns31210:0crwdne31210: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;

crwdns31211:0crwdne31211: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

crwdns31212:0crwdne31212:0