POI API
This commit is contained in:
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<>();
|
||||
|
||||
Reference in new issue
Block a user