the function isn't even participating in the creation of the ItemStack but alright @sbot50

This commit is contained in:
XTerPL 2025-02-02 16:13:08 +01:00
parent 4ffcf63689
commit e726e5fbd5

View file

@ -128,10 +128,6 @@ public abstract class CustomItem<T extends ItemContext> implements RecipeProvide
return repairPredicate.matchItem(stack);
}
protected ItemPredicate repairPredicate() {
return null;
}
// DO NOT CALL THIS METHOD, instead call create() on the item's instance
// also there's no need to set the "custom_item" item tag because
// the create() method does it anyway
@ -150,5 +146,9 @@ public abstract class CustomItem<T extends ItemContext> implements RecipeProvide
return List.of();
}
protected ItemPredicate repairPredicate() {
return null;
}
protected abstract T parseRawContext(Player player, String raw) throws ParseException;
}