Merge branch 'master' into 1.15
This commit is contained in:
commit
5addcc54c4
4 files changed
+131
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<>();
|
||||
|
||||
Reference in new issue
Block a user