crwdns154677:0crwdne154677:0
Note
crwdns154679:0crwdne154679:0
crwdns154681:0crwdne154681:0
crwdns154683:0crwdne154683:0
crwdns154685:0crwdne154685:0
crwdns154687:0crwdne154687:0
crwdns154689:0crwdne154689:0
crwdns154691:0crwdne154691: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;
crwdns154693:0crwdne154693: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
crwdns154695:0crwdne154695:0