This commit is contained in:
gnembon committed 2020-01-17 17:10:22 -04:00
1 parent c85718a2c2
commit dd31d43192
4 files changed
+122 -7

No files matched your search

@@ -1,5 +1,6 @@
package carpet.script.value;
import carpet.script.LazyValue;
import carpet.script.exception.InternalExpressionException;
import net.minecraft.item.ItemStack;
import net.minecraft.util.registry.Registry;
@@ -86,6 +87,12 @@ public class ListValue extends AbstractListValue implements ContainerValueInterf
return ListValue.wrap(Arrays.asList(list));
}
public static LazyValue lazyEmpty()
{
Value ret = new ListValue();
return (c, t) -> ret;
}
private ListValue()
{
items = new ArrayList<>();