We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3725b commit 890a067Copy full SHA for 890a067
core/src/main/java/io/github/projectunified/craftitem/core/ItemModifier.java
@@ -27,4 +27,13 @@ public interface ItemModifier {
27
* @param translator a function to translate string values (e.g., for variable substitution)
28
*/
29
void modify(Item item, UnaryOperator<String> translator);
30
+
31
+ /**
32
+ * Applies modifications to the given item.
33
+ *
34
+ * @param item the item to modify
35
+ */
36
+ default void modify(Item item) {
37
+ modify(item, UnaryOperator.identity());
38
+ }
39
}
0 commit comments