Add new split functions
This commit is contained in:
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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user