optional

@JvmName(name = "optionalEntityArg")
fun ArgumentReader<ServerCommandSource, ListEntityArgumentDescriptor>.optional(): Collection<Entity>

Reads the collection of entities from the argument in the receiver ArgumentReader.

Returns an empty collection if no entities are matched.

Author

Cypher121

See also


@JvmName(name = "optionalPlayerArg")
fun ArgumentReader<ServerCommandSource, ListPlayerArgumentDescriptor>.optional(): Collection<ServerPlayerEntity>

Reads the collection of players from the argument in the receiver ArgumentReader.

Returns an empty collection if no entities are matched.

Author

Cypher121

See also