Add new split functions

This commit is contained in:
altrisi committed 2021-01-11 19:46:39 +01:00
1 parent f3f8c689a8
commit 49ffa4f109
5 files changed
+52 -16

No files matched your search

@@ -1,5 +1,7 @@
package carpet.script.value;
import java.util.ArrayList;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import net.minecraft.nbt.StringTag;
@@ -63,6 +65,11 @@ public class NullValue extends NumericValue // TODO check nonsingleton code
return StringTag.of("null");
}
@Override
public Value split(Value delimiter) {
return ListValue.wrap(new ArrayList<Value>());
}
@Override
public JsonElement toJson()
{