code cleanup for getItemsStackFromValue and npp keywords

This commit is contained in:
gnembon committed 2022-08-28 20:01:40 +02:00
1 parent 44bce20d75
commit bb12e3ddd1
4 files changed
+46 -26

No files matched your search

@@ -258,10 +258,7 @@ public class Auxiliary {
));
});
expression.addContextFunction("item_display_name", -1, (c, t, lv)->{
return new FormattedTextValue(ValueConversions.getItemStackFromValue(lv.get(0)).getHoverName());
});
expression.addUnaryFunction("item_display_name", v -> new FormattedTextValue(ValueConversions.getItemStackFromValue(v, false).getHoverName()));
expression.addContextFunction("particle_box", -1, (c, t, lv) ->
{