task types are reported properly.
This commit is contained in:
1 parent
c728fcb8cc
commit
803f99e8f0
3 files changed
+10
-2
No files matched your search
@@ -673,7 +673,8 @@ Returns the deep copy of the expression. Can be used to copy mutable objects, li
|
|||||||
### `type(expr)`
|
### `type(expr)`
|
||||||
|
|
||||||
Returns the string value indicating type of the expression. Possible outcomes
|
Returns the string value indicating type of the expression. Possible outcomes
|
||||||
are `null, number, string, list, iterator`, as well as minecraft related concepts like `block, entity, nbt`
|
are `null`, `number`, `string`, `list`, `map`, `iterator`, `function`, `task`,
|
||||||
|
as well as minecraft related concepts like `block`, `entity`, `nbt`, `text`
|
||||||
|
|
||||||
### `bool(expr)`
|
### `bool(expr)`
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ Returns the deep copy of the expression. Can be used to copy mutable objects, li
|
|||||||
### `type(expr)`
|
### `type(expr)`
|
||||||
|
|
||||||
Returns the string value indicating type of the expression. Possible outcomes
|
Returns the string value indicating type of the expression. Possible outcomes
|
||||||
are `null, number, string, list, iterator`, as well as minecraft related concepts like `block, entity, nbt`
|
are `null`, `number`, `string`, `list`, `map`, `iterator`, `function`, `task`,
|
||||||
|
as well as minecraft related concepts like `block`, `entity`, `nbt`, `text`
|
||||||
|
|
||||||
### `bool(expr)`
|
### `bool(expr)`
|
||||||
|
|
||||||
|
|||||||
@@ -151,4 +151,10 @@ public class ThreadValue extends Value
|
|||||||
if (!force) throw new NBTSerializableValue.IncompatibleTypeException(this);
|
if (!force) throw new NBTSerializableValue.IncompatibleTypeException(this);
|
||||||
return getValue().toTag(true);
|
return getValue().toTag(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTypeString()
|
||||||
|
{
|
||||||
|
return "task";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user